[wxPython-users] Application crashes after running a wxPython application via MS ActiveScript

Mark Erbaugh mark at microenh.com
Thu Feb 7 09:52:01 PST 2008


> Some hypotheses:
> - some remnants of wxPython window management live on, confusing
> Windows.
> - the ActiveScript session has not really terminated, so Python is
> still running, so wxPython has not been reclaimed by the GC, so it is
> actually still running its main-loop


You could check for this by writing some code in your application that
only happens after the call to app.MainLoop(). If that code is executed,
then the main loop is exiting.

if __name__ == '__main__':
	app = wx.PySimpleApp()
	frame = xxx()
	app.MainLoop()
	print 'exiting main loop'

If you don't have visibility of stdout you may not see the print
statement, but you could have it write to a file or to the event log.







More information about the wxpython-users mailing list