Important: The information in this document is obsolete and should not be used for new development.
TempMaxMem
To find the size of the largest contiguous block available for temporary allocation, use theTempMaxMem
function.
FUNCTION TempMaxMem (VAR grow: Size): Size;
grow
- On exit, this parameter always contains 0 after the function call because temporary memory does not come from the application's heap zone, and only that zone can grow. Ignore this parameter.
DESCRIPTION
TheTempMaxMem
function compacts the current heap zone and returns the size of the largest contiguous block available for temporary allocation.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forTempMaxMem
are
Trap macro Selector _OSDispatch $0015 SPECIAL CONSIDERATIONS
BecauseTempMaxMem
could move memory, you should not call it at interrupt time.