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


TempFreeMem

To find out the total amount of memory available for temporary allocation, use the TempFreeMem function.

FUNCTION TempFreeMem: LongInt;
DESCRIPTION
The TempFreeMem function returns the total amount of free temporary memory that you could allocate by calling TempNewHandle. The returned value is the total number of free bytes. Because these bytes might be dispersed throughout memory, it is ordinarily not possible to allocate a single relocatable block of that size.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for TempFreeMem are
Trap macroSelector
_OSDispatch$0018

SPECIAL CONSIDERATIONS
Even though TempFreeMem does not move or purge memory, you should not call it at interrupt time.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996