Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77881

Re: Marco's atexit issue was: Re: ANN: wxPython 3.0.1.1

Date 2014-09-15 05:19 -0700
From Marco Prosperi <marcoprosperi347@gmail.com>
References <5411246B.8060700@alldunn.com> <180ac253-7f29-4157-aed6-38f929e00674@googlegroups.com> <29a07ca1-990c-432a-9693-3dbc5f89f6f4@googlegroups.com>
Subject Re: Marco's atexit issue was: Re: ANN: wxPython 3.0.1.1
Newsgroups comp.lang.python
Message-ID <mailman.14021.1410784090.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

all the code addressed by the exception is out of my source. I don't have 
any atexit.register in my code

Marco

On Friday, September 12, 2014 6:33:09 PM UTC+2, Nathan McCorkle wrote:
>
>
>
> On Friday, September 12, 2014 1:14:41 AM UTC-7, Marco Prosperi wrote:
>>
>>
>> I'm trying to pass my application from wxpython2.9.4 to 3.0.1 but there 
>> seems to be still some of the problems that made me skip wxpy2.9.5: when 
>> I 
>> close the main window of my application (windows7-64bit, python 2.7) I 
>> get 
>> exceptions like this below (none with wxpy2.9.4). How can I avoid that my 
>> users get this? this happens after my OnExit function is completed 
>>
>> Marco 
>>
>> Error in atexit._run_exitfuncs: 
>> Traceback (most recent call last): 
>>   File "C:\Programmi\Python27\lib\atexit.py", line 24, in _run_exitfuncs 
>>     func(*targs, **kargs) 
>> PyAssertionError: C++ assertion "GetEventHandler() == this" failed at 
>> ..\..\src\ 
>> common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event 
>> handle 
>> rs must have been removed 
>> Error in sys.exitfunc: 
>> Traceback (most recent call last): 
>>   File "C:\Programmi\Python27\lib\atexit.py", line 24, in _run_exitfuncs 
>>     func(*targs, **kargs) 
>> wx._core.PyAssertionError: C++ assertion "GetEventHandler() == this" 
>> failed 
>> at . 
>> .\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any 
>> pushed eve 
>> nt handlers must have been removed 
>>
>
>
> 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.
>  
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Marco's atexit issue was: Re: ANN: wxPython 3.0.1.1 Marco Prosperi <marcoprosperi347@gmail.com> - 2014-09-15 05:19 -0700

csiph-web