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


MaxMemSys

You can use the MaxMemSys function to purge and compact the system heap zone manually.

FUNCTION MaxMemSys (VAR grow: Size): Size;
grow
On exit, the MaxMemSys function sets this parameter to 0. Ignore this parameter.
DESCRIPTION
The MaxMemSys function works much as the MaxMem function does, but compacts and purges the system heap instead of the current heap. It returns the size, in bytes, of the largest block you can allocate in the system heap.

RESULT CODES
noErr0No error

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996