Strange error

Robin,
Thank you for your help.
But how can I find out more details about the problem that caused shutdown?
Ladislav

···

A wrote:
> Hi,
> I wrote a program in Python 2.1 and appropriate version of
> wxPython. One of Chinese users can not use the program but he
> receives
> D:\Robot_2_8>rgs
>
>>>24
>>>17:03:08: Debug: e:\projects\wx\src\msw\app.cpp(439):
>>>'UnregisterClass(canvas)'
>>>failed with error 0x00000000 (ä½o業å®Oæ^ã?,).
>>>
>
>
> Where is a problem?

That error just means that the app has shutdown uncleanly and that
there are still windows existing. Probably something failed in the
OnInit and the true traceback showed up only breifly in the stderr
window.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org

BMA TRADING wrote:

Robin,
Thank you for your help.
But how can I find out more details about the problem that caused shutdown?

Sorry, I was going to add a comment about that but got sidetracked.

This has been discussed a few times and there are a few different ways to handle it. (And probably a few mentioned on the wiki too...) Basically you need to try and catch errors in the OnInit or your main frame's __init__ so you can do it with a try/except, or you can run the app with python -i so the interpreter doesn't exit when the app is done. Or you can give a filename to wxApp.__init__ so it will write stderr to a file, etc...

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!