On Sun, Sep 16, 2012 at 2:52 PM, Victor Bombi <[email protected]> wrote:
> There is an assert complain about resources not being loaded and something
> about wx.rc.
> The message doesnt appear know, application simply crash
> I saw in the code that __WXMSW__ should be defined for remembering the
> dllinstance for loading resources.
> Must I define it? Where?
What code where? __WXMSW__ should be already be defined in MS Windows
unless your wxWidgets build is badly misconfigured.
What are you doing when there is the assert? Calling require("wx") in Lua code?
This should work now as I made some changes the wx.dll to solve this
problem, though I only built and tested using Visual Studio 2008.
http://wxlua.svn.sourceforge.net/viewvc/wxlua/trunk/wxLua/modules/luamodule/src/luamodule.cpp?r1=28&r2=73&pathrev=124
Can you add this line to modules/luamodule/luamodule.cpp to help
figure out what is happening and recompile?
50 BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID
)
51 {
printf("AAAAAAA %p %d : a %d d %d\n", hModule,
(int)ul_reason_for_call, (int)DLL_PROCESS_ATTACH,
(int)DLL_PROCESS_DETACH); fflush(stdout);
52 switch (ul_reason_for_call)
53 {
...
I'm wondering if this code even gets called when compiled with Mingw.
Thanks,
John
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users