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 theDIUnloadprocedure.
PROCEDURE DIUnload;DESCRIPTION
TheDIUnloadprocedure 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
ReleaseResourceprocedure.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 routinesPurgeMemandMaxMem. For more information, see the chapter "Memory Manager" in Inside Macintosh: Memory.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forDIUnloadare
Trap macro Selector _Pack2 $0004 SPECIAL CONSIDERATIONS
BecauseDIUnloadmight affect memory, you should not call it at interrupt time.