lua-users home
lua-l archive

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


2010/9/5 Tyrael <jerky168@126.com>:
> This happens randomly, and i don't find in what condition it will
> happen. Any advice given is appreciated.

Hi,

I don t know exactly but in my experience it is strongly probable that
you forgot to declare the variable as local and lua is binding it to
the enclosing scope. This kind of problem can be hard to spot because
is some cases the program can actually work when you debug it at the
beginning.

Francesco