From: Laurent R. <lr...@iv...> - 2015-09-03 12:21:39
|
Hi John, At first, i would like to tell you how big is your works : thanks for all. I use wxLua with wxWidget 3.0.2 since 1 year on x86 and x64 platforms on Windows 7 with no matter. Since I have jumped on Windows 10, wxLua crash on x64. Same dll, same code. I think, I have found the problem. In file wxlstate.cpp In function void* LUACALL wxluaT_getuserdatatype(lua_State* L, int stack_idx, int wxl_type) long int o = (long int)wxlua_touserdata(L, stack_idx, false); should be changed in size_t o = (size_t)wxlua_touserdata(L, stack_idx, false); on Windows platforms to avoid original pointer to be truncated in 32 bits. Why it doesn't crash since 1 year on Win7, I really don't know, probably I'm a lucky man and memory management has changed on Win10 ! I guess, it could help. Regards, Laurent. |