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


SetApplBase

The Process Manager calls the SetApplBase procedure when it starts up your application. You should never need to call it. It is documented for completeness only.

PROCEDURE SetApplBase (startPtr: Ptr);
startPtr
The starting address for the application heap zone to be initialized.
DESCRIPTION
The SetApplBase procedure sets the starting address of the application heap zone
for the application being initialized to the address designated by startPtr, and
then calls the InitApplZone procedure.

WARNING
Like InitApplZone, SetApplBase is a potentially dangerous operation, because the program's code itself normally resides in the application heap zone. To do so safely, you must make sure that the code containing the SetApplBase call is not in the application zone.
SPECIAL CONSIDERATIONS
You should not call SetApplBase at all, but, if you must, be sure not to call it at interrupt time because it affects memory.

ASSEMBLY-LANGUAGE INFORMATION
The registers on exit for SetApplBase are
Registers on exit
D0Result code

RESULT CODES
noErr0No error

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996