<div dir="ltr"><br>all the code addressed by the exception is out of my source. I don't have any atexit.register in my code<br><br>Marco<br><br>On Friday, September 12, 2014 6:33:09 PM UTC+2, Nathan McCorkle wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><br><br>On Friday, September 12, 2014 1:14:41 AM UTC-7, Marco Prosperi wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>I'm trying to pass my application from wxpython2.9.4 to 3.0.1 but there 
<br>seems to be still some of the problems that made me skip wxpy2.9.5: when I 
<br>close the main window of my application (windows7-64bit, python 2.7) I get 
<br>exceptions like this below (none with wxpy2.9.4). How can I avoid that my 
<br>users get this? this happens after my OnExit function is completed
<br>
<br>Marco
<br>
<br>Error in atexit._run_exitfuncs:
<br>Traceback (most recent call last):
<br>  File "C:\Programmi\Python27\lib\<wbr>atexit.py", line 24, in _run_exitfuncs
<br>    func(*targs, **kargs)
<br>PyAssertionError: C++ assertion "GetEventHandler() == this" failed at 
<br>..\..\src\
<br>common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event 
<br>handle
<br>rs must have been removed
<br>Error in sys.exitfunc:
<br>Traceback (most recent call last):
<br>  File "C:\Programmi\Python27\lib\<wbr>atexit.py", line 24, in _run_exitfuncs
<br>    func(*targs, **kargs)
<br>wx._core.PyAssertionError: C++ assertion "GetEventHandler() == this" failed 
<br>at .
<br>.\..\src\common\wincmn.cpp(<wbr>478) in wxWindowBase::~wxWindowBase(): any 
<br>pushed eve
<br>nt handlers must have been removed
<br></blockquote><div><br></div><div><br></div><div>Post some code? Sounds like you're trying to interact with a wxPython object in a function using atexit.register(AtExit)... which likely is always going to happen after the wx Destroy method is all done.</div><div> </div></div></blockquote></div>