![]() |
InitApplZone |
||||
Header: | MacMemory.h | Carbon status: | Unsupported | |
Initializes the application heap zone and makes it the current zone.
void InitApplZone ();
The Process Manager calls the InitApplZone function indirectly when it launches your application. You should never need to call it. It is documented for completeness only.
After a call to InitApplZone, the Memory Manager discards the contents of any previous application zone and discards all previously existing blocks in that zone. The InitApplZone function sets the zones grow-zone function to NULL.
Call the function MemError to get the result code. See
You should not call InitApplZone at all, but, if you must, be sure not to call it at interrupt time because it could purge and allocate memory.
Reinitializing the application zone from within a running program is dangerous, because the applications code itself normally resides in the application zone. To do so safely, you must make sure that the code containing the InitApplZone call is not in the application zone.
Not supported in Carbon. Not available in CarbonLib, but available when InterfaceLib 7.1 or later is installed. Exported by InterfaceLib 7.1 and later.