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: Memory /
Chapter 2 - Memory Manager / Memory Manager Reference
Memory Manager Routines


Freeing Memory

The Memory Manager compacts and purges the heap whenever necessary to satisfy requests for memory. You can also compact or purge the heap manually. To compact the current heap zone manually, use the CompactMem function. To purge it manually, use the PurgeMem procedure. To do both at once, use the MaxMem function. To perform the same operations on the system heap zone, use the CompactMemSys function, the PurgeMemSys procedure, and the MaxMemSys function.

Note
Most applications don't need to call the routines described in this section. Normally you should let the Memory Manager compact or purge your application heap.

Subtopics
CompactMem
CompactMemSys
PurgeMem
PurgeMemSys
MaxMem
MaxMemSys

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996