lua-users home
lua-l archive

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


> I do not think that it is userdata (not the visible side of problem
> anyway). Since rawgeti gets corrupted Lua state as parameter, it looks
> like that it is some Lua thread (coroutine) gets collected. Have I do
> hack Lua sources to add logging on construction/collection of all Lua
> threads, or I can track it interactively in VC 8 debugger somehow?

In Lua 5.1 you can define the luai_userstate... macros in luaconf.h to
some specific code.  For example when a thread is collected
luai_userstatefree will be called.

--
Wim,