TempMaxMem
To find the size of the largest contiguous block available for temporary allocation, use the TempMaxMem 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
The TempMaxMem 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 for TempMaxMem are
| Trap macro | Selector |
| _OSDispatch | $0015 |
SPECIAL CONSIDERATIONS
Because TempMaxMem could move memory, you should not call it at interrupt time.