Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Memory /
Chapter 2 - Memory Manager / Memory Manager Reference
Memory Manager Routines / Freeing Memory


PurgeMemSys

You can use the PurgeMemSys procedure to purge the system heap manually.

PROCEDURE PurgeMemSys (cbNeeded: Size);
cbNeeded
The size, in bytes, of the block for which PurgeMemSys should attempt
to make room.
DESCRIPTION
The PurgeMemSys procedure works much as the PurgeMem procedure does, but purges the system heap instead of the current heap.

RESULT CODES
noErr0No error
memFullErr-108Not enough memory

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996