![]() |
SetApplLimit |
||||
Header: | MacMemory.h | Carbon status: | Unsupported | |
Sets the application heap limit.
void SetApplLimit ( void *zoneLimit );
A pointer to a byte in memory demarcating the upper boundary of the application heap zone. The zone can grow to include the byte preceding zoneLimit in memory, but no further.
The SetApplLimit function sets the current application heap limit to zoneLimit. If the zone already extends beyond the specified limit, the Memory Manager does not cut it back but does prevent it from growing further.
Note that the zoneLimit parameter is not a byte count, but an absolute byte in memory. Thus, you should use the SetApplLimit function only with a value obtained from the Memory Manager functions GetApplLimit or ApplicationZone.
You cannot change the limit of zones other than the application heap zone.
Call the function MemError to get the result code. See
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.