Important: The information in this document is obsolete and should not be used for new development.
HNoPurge
You can use theHNoPurgeprocedure to mark a relocatable block so that it cannot be purged.
PROCEDURE HNoPurge (h: Handle);
h- A handle to a relocatable block.
DESCRIPTION
TheHNoPurgeprocedure makes the relocatable block to whichhis a handle unpurgeable. If the block is already unpurgeable,HNoPurgedoes nothing.The
HNoPurgeprocedure does not reallocate memory for a handle if it has already
been purged.ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit forHNoPurgeare
Registers on entry A0 Handle to make unpurgeable
Registers on exit D0 Result code RESULT CODES
noErr 0 No error nilHandleErr -109 NILmaster pointermemWZErr -111 Attempt to operate on a free block SEE ALSO
If you want to reallocate memory for a relocatable block that has already been purged, you can use theReallocateHandleprocedure, described on page 2-52.