◄Summary► ◄Details► ◄Example► ◄Back► Argument heap_mark Pointer of any type, usually untyped Description The Mark procedure sets a pointer to the address of the current top of the heap. Use the value returned by Mark in a later call to the Release procedure. The heap_mark argument is a pointer of any type, usually untyped. Mark stores the current value of HeapPtr in heap_mark. HeapPtr, defined in the System unit, always points to the top of the heap. Release frees memory from heap_mark to the current top of the heap and clears the free list. Allocation causes the top of the heap to grow upward (toward FFFF) from the bottom of the heap segment. Deallocation may lower the top of the heap or may leave a free block in the heap.