Re: Debugging crashes on GC
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Debugging crashes on GC
- From: Wim Couwenberg <w.couwenberg@...>
- Date: 2006年7月26日 16:24:47 +0200
> 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,