- Inside Macintosh: Memory /
- Chapter 2 - Memory Manager / Memory Manager Reference
- Memory Manager Routines
Allocating and Releasing Relocatable Blocks of Memory
You can use the NewHandle function to allocate a relocatable block of memory, or the NewEmptyHandle function to allocate handles for which you do not yet need blocks of memory. If you want to allocate new blocks of memory in the system heap or with their bits precleared to 0, you can use the functions NewHandleSys, NewHandleClear, and NewHandleSysClear.
- WARNING
- You should not call any of these memory-allocation routines at
interrupt time.
You can use the DisposeHandle procedure to free relocatable blocks of memory you have allocated.
Subtopics
- NewHandle
-
- NewHandleSys
-
- NewHandleClear
-
- NewHandleSysClear
-
- NewEmptyHandle
-
- NewEmptyHandleSys
-
- DisposeHandle
-
© Apple Computer, Inc.
3 JUL 1996