Important: The information in this document is obsolete and should not be used for new development.
MaxApplZone
To help ensure that you can use as much of the application heap zone as possible, call theMaxApplZoneprocedure. Call this once near the beginning of your program, after you have expanded your stack.
PROCEDURE MaxApplZone;DESCRIPTION
TheMaxApplZoneprocedure expands the application heap zone to the application heap limit. If you do not callMaxApplZone, the application heap zone grows as necessary to fulfill memory requests. TheMaxApplZoneprocedure does not purge any blocks currently in the zone. If the zone already extends to the limit,MaxApplZonedoes nothing.It is a good idea to call
MaxApplZoneonce at the beginning of your program if you intend to maintain an effectively partitioned heap. If you do not callMaxApplZoneand then callMoveHHito move relocatable blocks to the top of the heap zone before locking them, the heap zone could later grow beyond these locked blocks to fulfill a memory request. If the Memory Manager were to allocate a nonrelocatable block in this new space, your heap would be fragmented.ASSEMBLY-LANGUAGE INFORMATION
The registers on exit forMaxApplZoneare
Registers on exit D0 Result code RESULT CODES
noErr 0 No error