[Gc] Re: GC needs to be invoked manually

Larry Evans cppljevans at cox-internet.com
Mon Aug 15 15:16:36 PDT 2005

On 08/15/2005 04:24 PM, Martin Wartens wrote:
>>Nothing's destroyed yet because there's still a root pointer,
>>someElement, on the stack at this point.
> That someElement is still alive shouldn't prevent the collection of n1 and n2. 
> someElement is a shared "leaf" from the standpoint of the tree structure, so it 

OOPS.  My mistake.  Somehow, because I'd written test code which had
someElement as the root, I mistakenly thought you'd done the same.  But
now I can see that someElement indeed is a "leaf".

Sorry for not reading your code more carefully :(

More information about the Gc mailing list