Docs » Autodocs » dos.library » FreeDosObject
FreeDosObject -- Frees an object allocated by AllocDosObject() (V36)
FreeDosObject(type, ptr) D1 D2 void FreeDosObject(ULONG, void *)
Frees an object allocated by AllocDosObject(). Do NOT call for objects allocated in any other way.
type - type passed to AllocDosObject() ptr - ptr returned by AllocDosObject()
Before V39, DOS_CLI objects will only have the struct CommandLineInterface freed, not the strings it points to. This is fixed in V39 dos. Before V39, you can workaround this bug by using FreeVec() on cli_SetName, cli_CommandFile, cli_CommandName, and cli_Prompt, and then setting them all to NULL. In V39 or above, do NOT use the workaround.
AllocDosObject(), exec.library/FreeVec(), <dos/dos.h>
|