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


Allocating Temporary Memory

In system software version 7.0 and later, you can manipulate temporary memory
with three routines that are counterparts to other Memory Manager routines.
The TempNewHandle function allocates a new block of relocatable memory, the TempFreeMem function returns the total amount of free memory available for temporary allocation, and the TempMaxMem function compacts the heap zone and returns the size
of the largest contiguous block available for temporary allocation.

WARNING
You should not call any of these memory-allocation routines at
interrupt time.

Subtopics
TempNewHandle
TempFreeMem
TempMaxMem

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996