Important: The information in this document is obsolete and should not be used for new development.
Assessing Memory Conditions
The Memory Manager provides four routines to test how much memory is available, one routine used after memory operations to determine if an error occurred, and one routine to determine the location in memory of the top of your application's partition.To determine the total amount of free space in the current heap zone or the size of the maximum block that could be obtained after compacting the heap, use the
FreeMem
andMaxBlock
functions, respectively. To determine what those values would be after a purge of the heap zone, call thePurgeSpace
procedure. Finally, to find out how much your stack can grow before it collides with the heap, use theStackSpace
function.To find out whether a Memory Manager operation finished successfully, use the
MemError
function.
Subtopics
- FreeMem
- FreeMemSys
- MaxBlock
- MaxBlockSys
- PurgeSpace
- StackSpace
- MemError