CompactMemSys
You can use theCompactMemSysfunction to compact the system heap zone manually.
FUNCTION CompactMemSys (cbNeeded: Size): Size;
cbNeeded- The size in bytes of the block for which
CompactMemSysshould attempt to make room.DESCRIPTION
TheCompactMemSysfunction works much as theCompactMemfunction does, but compacts the system heap instead of the current heap.RESULT CODES
noErr 0 No error