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


Manipulating Heap Zones

The Memory Manager provides several routines for initializing and resizing heap zones.

To obtain information about the current application partition, applications can call the GetApplLimit function and the TopMem function. If your application uses the stack extensively, you might want to ensure that the stack is set to at least some minimum size, at the expense of the heap. To do so, use the SetApplLimit procedure to change the application heap limit before you call the MaxApplZone procedure.

To initialize a new heap zone, use the InitZone procedure. The Operating System automatically initializes the application zone by calling the SetApplBase procedure, which subsequently calls the InitApplZone procedure.


Subtopics
GetApplLimit
SetApplLimit
TopMem
InitZone
InitApplZone
SetApplBase

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996