[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: lua_newthread returning 2 values
- From: "Erik Cassel" <erik@...>
- Date: Tue, 21 Oct 2008 15:53:19 -0700
> You may try to modify your finalizers (__gc metamethods) and check
> whether any modifications affect this behaviour.
Yes, I changed the finalizers to no-opts. Still I get the extra item on the
[mailto:firstname.lastname@example.org] On Behalf Of Roberto
Sent: Tuesday, October 21, 2008 5:32 AM
To: Lua list
Subject: Re: lua_newthread returning 2 values
> Occasionally lua_newthread is returning two values - rather than one - as
> is supposed to do!
> I've wondered if any side effects of my __gc metamethod could be the
> problem. The cleanup code in the __gc metamethod might possibly re-enter
> somewhere, but I haven't found evidence of this, yet.
> Any suggestions on what might be happening?
You may try to modify your finalizers (__gc metamethods) and check
whether any modifications affect this behaviour. (E.g., remove some
calls to Lua, push or pop some other values in the stack, etc.) This
may shed more light into the problem.