Important: The information in this document is obsolete and should not be used for new development.
NewHandleSys
You can use theNewHandleSys
function to allocate a relocatable block of memory of a specified size in the system heap.
FUNCTION NewHandleSys (logicalSize: Size): Handle;
logicalSize
- The requested size (in bytes) of the relocatable block.
DESCRIPTION
TheNewHandleSys
function works much as theNewHandle
function does, but attempts to allocate the requested block in the system heap zone instead of in the current heap zone. If it cannot, it returnsNIL
.RESULT CODES
noErr 0 No error memFullErr -108 Not enough memory in heap zone