> I didn't know it was safe to call lua_sethook from another (OS) thread while a script was running. This is not the same situation as in the vanilla Lua interpreter, or is it? No, it's not. lua.c calls lua_sethook from a signal handler. --lhf