lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> 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.

- DC