Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 5 - Disk Initialization Manager / Disk Initialization Manager Reference
Routines / Loading and Unloading the Disk Initialization Manager


DIUnload

To free the memory space occupied by the Disk Initialization Manager, you can call the DIUnload procedure.

PROCEDURE DIUnload;
DESCRIPTION
The DIUnload 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 routines PurgeMem and MaxMem. For more information, see the chapter "Memory Manager" in Inside Macintosh: Memory.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for DIUnload are
Trap macroSelector
_Pack2$0004

SPECIAL CONSIDERATIONS
Because DIUnload might affect memory, you should not call it at interrupt time.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996