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 1 - Introduction to Memory Management / Memory Management Reference
Memory Management Routines


Managing Relocatable Blocks

The Memory Manager provides routines that allow you to purge and later reallocate space for relocatable blocks and control where in their heap zone relocatable blocks are located.

To free the memory taken up by a relocatable block without releasing the master pointer to the block for other uses, use the EmptyHandle procedure. To reallocate space for a handle that you have emptied or the Memory Manager has purged, use the ReallocateHandle procedure.

To ensure that a relocatable block that you plan to lock for short or long periods of time does not cause heap fragmentation, use the MoveHHi and the ReserveMem procedures, respectively.


Subtopics
EmptyHandle
ReallocateHandle
ReserveMem
MoveHHi
HLockHi

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996