These code is executed in a thread. After the last line code as the
above is executed, I guess the thread is ready to exit, then I got the
error:
The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
My program crashes.....
Anybody knows what happened? And hot to fix? It is normal on windows
platform.
These code is executed in a thread. After the last line code as the
above is executed, I guess the thread is ready to exit, then I got the
error:
The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
My program crashes.....
Anybody knows what happened? And hot to fix? It is normal on windows
platform.
What does your writeLog method do? If it is putting that text directly
into a widget like a textctrl or something that almost certainly your
problem. You can not update widgets directly from background threads.
(see wx.CallAfter or wx.PostEvent).
If you are not directly updating widgets from a background thread then
will need to see a small runnable sample that reproduces the issue
(MakingSampleApps - wxPyWiki).
Cody
···
On Mon, Jun 7, 2010 at 3:21 AM, 88pigs <88pigs@gmail.com> wrote: