From: Victor B. <so...@te...> - 2012-09-19 07:22:26
|
> Can you change it to this and see if you can load it multiple times as > you used to? > I have never been able to do it: My problem is that lualanes creates a completely new lua_State running in a separate thread and a call to require on wx makes luaopen_wx return lua_getglobal(newState, "wx"); which is nil in that new lua_State. The other part in luaopen_wx is not called because s_wxlState is a static wxLuaState so !s_wxlState.Ok() fails because is was inited in a pevious lane (lua_State) So I can require it in ANY lane I want but only on ONE. Best Regards Victor Bombi |