From: John L. <jla...@gm...> - 2006-12-08 06:13:07
|
Fixed in CVS, the problem was with the wxProcess of the debuggee sending a temination event, but the debugger doesn't exit until the lua program is finished running so the wxLua executable's wxApp was still in wxApp::OnInit and the event handlers aren't fully created yet. I subclassed wxProcess to avoid running the event handler. I've tweaked up the editor as well so that it does a test compile before running or debugging to quickly see if there are any obvious errors. Regards, John Labenski On 12/7/06, John Labenski <jla...@gm...> wrote: > On 12/7/06, Andre <ar...@ki...> wrote: > > I have tried to solve this problem but it seems to involve some rather depth > > understanding of the internal. > > > > on window the debugger fail on run time error > > > > simple example, giving a file wiht th following line > > > > a() > > > > If you debug it you have the expected error in the output window and then the > > program and the server (where the debug code is running) crash. > > > > There seem to be an invalid event being process for a hidden window but I am far > > from understanding what is relly going on. > > I do not understand it either, somehow an event handler is > uninitialized in the wxWidgets code to process the events. I believe > it is with the wxProcessEvent and so I subclassed wxProcess and used > it's virtual OnTerminate function instead, but then it crashed in a > wxCriticalSection in the wWidgets events handler code. MSVC doesn't > give a very useful stack, I'll try with gcc and gdb tonight. > > Regards, > John Labenski > |