![]() |
DisposePtr |
||||
Header: | MacMemory.h | Carbon status: | Supported | |
Releases memory occupied by a nonrelocatable block.
void DisposePtr ( Ptr p );
A pointer to the nonrelocatable block you want to dispose of.
When you no longer need a nonrelocatable block, call the DisposePtr function to free it for other uses.
Call the function MemError to get the result code. See
After a call to DisposePtr, all pointers to the released block become invalid and should not be used again. Any subsequent use of a pointer to the released block might cause a system error.
Because DisposePtr purges memory, you should not call it at interrupt time.
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)