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 / Allocating and Releasing Relocatable Blocks of Memory


NewHandleSys

You can use the NewHandleSys 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
The NewHandleSys function works much as the NewHandle 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 returns NIL.

RESULT CODES
noErr0No error
memFullErr-108Not enough memory in heap zone

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996