Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!lsr From: lsr@Apple.com (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Is this possible with the Resource Manager? Message-ID: <12213@goofy.Apple.COM> Date: 22 Feb 91 02:48:41 GMT References: <1CE00001.ed5n0r@tbomb.ice.com> <12158@goofy.Apple.COM> <1991Feb20.101151.22358@bootsie.uucp> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 16 In article <1991Feb20.101151.22358@bootsie.uucp>, olson@bootsie.uucp (Eric K. Olson) writes: > > It occurs to me that calling DetachResource() on _any_ resource in the > currently running Application could be dangerous (if that resource has > been GetResource()'ed by some other part of your program). It might You also have to be careful about system resources (for example snds), because these are shared under MultiFinder. > Is it possible to know what resources have been gotten and have since > been purged? Or gotten with SetResLoad(FALSE)? I think you would have to walk through the resource map, because that's where the handle would be stored if it has been gotten. Larry