> 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



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to