Disposing of Resources
The Resource Manager provides three procedures for disposing of resources. TheReleaseResourceprocedure releases the memory associated with a resource,
setting the handle's master pointer toNIL, thus making your application's handle to
the resource invalid. TheDetachResourceprocedure sets a resource's handle in the resource map toNILbut keeps the resource data in memory. TheRemoveResourceprocedure 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
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help