[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


   NAME
	FreeDosObject -- Frees an object allocated by AllocDosObject() (V36)

   SYNOPSIS
	FreeDosObject(type, ptr)
		       D1   D2

	void FreeDosObject(ULONG, void *)

   FUNCTION
	Frees an object allocated by AllocDosObject().  Do NOT call for
	objects allocated in any other way.

   INPUTS
	type - type passed to AllocDosObject()
	ptr  - ptr returned by AllocDosObject()

   BUGS
	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.

   SEE ALSO
	AllocDosObject(), FreeVec(), <dos/dos.h>