Important: The information in this document is obsolete and should not be used for new development.
HNoPurge
You can use theHNoPurge
procedure to mark a relocatable block so that it cannot be purged.
PROCEDURE HNoPurge (h: Handle);
h
- A handle to a relocatable block.
DESCRIPTION
TheHNoPurge
procedure makes the relocatable block to whichh
is a handle unpurgeable. If the block is already unpurgeable,HNoPurge
does nothing.The
HNoPurge
procedure does not reallocate memory for a handle if it has already
been purged.ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit forHNoPurge
are
Registers on entry A0 Handle to make unpurgeable
Registers on exit D0 Result code RESULT CODES
noErr 0 No error nilHandleErr -109 NIL
master 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 theReallocateHandle
procedure, described on page 2-52.