Important: The information in this document is obsolete and should not be used for new development.
DIUnload
To free the memory space occupied by the Disk Initialization Manager, you can call theDIUnload
procedure.
PROCEDURE DIUnload;DESCRIPTION
TheDIUnload
procedure makes the Disk Initialization Manager and its associated dialog box and dialog items purgeable. They remain in memory until the Memory Manager purges the heap zone.If you are using the low-level disk initialization routines and read just the package resource into memory, you can free the memory the package occupies by calling the
ReleaseResource
procedure.To force the Memory Manager to purge the heap zone so that it really frees the memory occupied by the Disk Initialization Manager and its dialog box and dialog items, you
can call one of the Memory Manager routinesPurgeMem
andMaxMem
. For more information, see the chapter "Memory Manager" in Inside Macintosh: Memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forDIUnload
are
Trap macro Selector _Pack2 $0004 SPECIAL CONSIDERATIONS
BecauseDIUnload
might affect memory, you should not call it at interrupt time.