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 Nonrelocatable Blocks of Memory


NewPtrSys

You can use the NewPtrSys function to allocate a nonrelocatable block of memory of a specified size in the system heap.

FUNCTION NewPtrSys (logicalSize: Size): Ptr;
logicalSize
The requested size (in bytes) of the nonrelocatable block.
DESCRIPTION
The NewPtrSys function works much as the NewPtr function does, but attempts to allocate the requested block in the system heap zone instead of in the current heap zone.

RESULT CODES
noErr0No error
memFullErr-108Not enough memory

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996