Carbon


SetApplBase

Header: MacMemory.h Carbon status: Unsupported

Sets the starting address for an application’s heap zone.

void SetApplBase (
    void *startPtr
);
Parameter descriptions
startPtr

The starting address of the application heap zone for the application being initialized.

DISCUSSION

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

Call the function MemError to get the result code. See “Result Codes”.

You should not call SetApplBase at all, but, if you must, be sure not to call it at interrupt time because it affects memory.

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.

AVAILABILITY

Not supported in Carbon. Not available in Carbon.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)