![]() |
DisposeHandle |
||||
Header: | MacMemory.h | Carbon status: | Supported | |
Releases memory occupied by a relocatable block.
void DisposeHandle ( Handle h );
A handle to a relocatable block.
The DisposeHandle function releases the memory occupied by the relocatable block whose handle is h. It also frees the handles master pointer for other uses.
Do not use DisposeHandle to dispose of a handle obtained from the Resource Manager (for example, by a previous call to GetResource), use ReleaseResource instead. If, however, you have called DetachResource on a resource handle, you should dispose of the storage by calling DisposeHandle.
Call the function MemError to get the result code. See
Because DisposeHandle purges memory, you should not call it at interrupt time.
After a call to DisposeHandle, all handles to the released block become invalid and should not be used again. Any subsequent calls to DisposeHandle using an invalid handle might damage the master pointer list.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)