Application doesn't end

Vadim Zeitlin vadim at wxwindows.org
Sat Dec 9 06:33:59 PST 2006


On Fri, 08 Dec 2006 14:55:47 +0100 Franky Braem <f.braem at skynet.be> wrote:

FB> I finally have managed to run wxJS on Ubuntu. It runs the scripts fine, 
FB> but it doesn't end. After all windows are closed, the OnExit (in the gui 
FB> wxApp) is called, but I have to press Ctrl-C to end the console program.

 The usual question: why don't you run it under debugger and look at the
backtrace when you press Ctrl-C to see what exactly is going on? Of course
it's possible that you don't discover the problem immediately but it's
quite possible that you do. And in any case this would give us at least
some additional information...

FB> One other thing that I see: When wxJS starts to log messages it writes 
FB> them to stdout. Once the gui module is loaded, it shows a dialog with 
FB> the next log messages. Is there a way to keep those log messages on stdout?

 Override wxApp::CreateLogTarget() to return a wxLogStderr.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list