Important: The information in this document is obsolete and should not be used for new development.
Disposing of Resources
The Resource Manager provides three procedures for disposing of resources. TheReleaseResource
procedure releases the memory associated with a resource,
setting the handle's master pointer toNIL
, thus making your application's handle to
the resource invalid. TheDetachResource
procedure sets a resource's handle in the resource map toNIL
but keeps the resource data in memory. TheRemoveResource
procedure removes the resource's entry from the resource map in memory; the
Resource Manager removes the resource data from memory (and from the file's resource fork) when it updates the file's resource fork.
Subtopics
- ReleaseResource
- DetachResource
- RemoveResource