From: Graham Barr [mailto:[EMAIL PROTECTED] > > I may be missing something here. But within the resources of > an object may be other PMCs. As those PMCs will not be referenced > from anywhere else what is to stop the DoD run from freeing those > before it freed the object ?
Putting my head out on the chopping block twice in one day... Correct me where I'm wrong but I was under the impression the DoD doesn't free anything... It consists of marking those resources reachable from the predetermined roots as active. All not marked active are deemed dead men walking and will after due process get their own green mile. Graph, destroy, deallocate... three separate phases. Back to the point: once the object is no longer reachable, it and all resources reachable only via it won't be marked as active and will consequently be swept away and collected without any yet defined guarantees of orderly destruction... Bad. Couldn't parrot guarantee orderly destruction by recursively marking and sweeping the rootless dead objects themselves? You might still end up with circular references between the dead objects themselves... in which case orderly destruction couldn't be guaranteed. -- Garrett Goebel IS Development Specialist ScriptPro Direct: 913.403.5261 5828 Reeds Road Main: 913.384.1008 Mission, KS 66202 Fax: 913.384.2180 www.scriptpro.com garrett at scriptpro dot com