[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>