From: Javier Mr <jav...@ym...> - 2013-04-08 11:23:41
|
Hi, i'm getting a crash when running my app and i wonder if i'm doing it wrong. The situation is like this: I have a native C++ application wich has a Lua interpreter embedded. This embedded interpreter load a lua script that contains wxLua. The idea is, the native code is multithraeded a modifies interal structures (protected with mutex) and i want to observe that values so i load the lua script with wxLua. I think my problem is that my native app do call the lua state to notify that changes to the internal data have occur, and the same?¿ lua state is called by wx as callbacks to the GUI events, could be this the reason for crash? Is there a way to avoid this? Not ideal but would be OK to do pooling in the MainLoop, so i could (every second for example) retrieve the new data from the native side and update the GUI with the current data. I hope i have been clear. Thanks in advance. Javier Monge. |