wxPython program crashes?

Levente Sandor sandorlevi at yahoo.com
Tue Aug 13 20:03:11 CEST 2002


Maybe this helps:
Be sure to create your wxApp instance before creating windows or other
wxPython objects.
levi

wjdandreta at worldnet.att.net (Bill Dandreta) wrote in message news:<3d57e9d5.14805374 at netnews.worldnet.att.net>...
> I have a small wxPython program that I wrote and it frequently crashes
> but only when I close it.
> 
> There is no output from the Python interpreter.
> 
> It is running on Windows 98. Closing the program sometimes causes the
> Windows "this program has performed an illegal operation..." error.
> 
> The program behaves much better if I run it inside Boa Constructor
> (i.e., it crashes less frequently).
> 
> Small changes seem to have a big effect on this problem. Sometimes
> making even the most minor change will make the problem disappear or
> reappear.
> 
> Except for this closing problem, the program seems to work perfectly.
> 
> It is a simple program with:
> 
> wxFrame,
> 
> wxMenuBar,
>  
> wxMenu with 3 items on it, 
> 
> wxTextCtrl,
> 
> 2 wxButton's,
> 
> wxGrid,
> 
> and a bunch of wxStaticText controls.
> 
> Anybody have a clue what might cause this?
> 
> Bill



More information about the Python-list mailing list