[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luatraverse.countreferences and object references
- From: "Daniel Collins" <daniel.collins@...>
- Date: Tue, 18 Jul 2006 18:42:33 +0930
> So perhaps these circular references (child has
> reference to parent which prevents collection of
> parent) are blocking the collection. But in this case I
> thought that countreferences would give me the count of the
> references caused by these closures.
It certainly seems that the child objects having a reference to the
parent via an upvalue is what is preventing collection. I temporarily
changed the code so that the parent referencing closures are not created
and now all three userdata objects get collected as required.
Of course now the code doesn't work but there should be a way around
that and I am one step closer to fixing the issue.