Re: Trellis WXEventLoop patch
"Phillip J. Eby" <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]>
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <[email protected]> |
At 07:25 PM 6/25/2008 +0300, Sergey Schetinin wrote: >For me it crashes violently (with windows error) briefly showing a new >window with a traceback. It happens every single time. In the actual >application that traceback is captured and looks like this: > > File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", >line 14404, in __init__ > self.Start() > File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", >line 14421, in Start > self.timer.Start(self.millis, wx.TIMER_ONE_SHOT) > File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_misc.py", >line 1298, in Start > return _misc_.Timer_Start(*args, **kwargs) >PyAssertionError: C++ assertion "m_milli > 0" failed at >..\..\src\msw\timer.cpp(89) in wxTimer::Start(): invalid value for >timer timeout > >The problem is that wx.CallLater first argument has to be a positive >integer, so if the activity event is less than 0.001 seconds from now >it will produce this error, so wx.CallAfter should be used in those >cases. I understand what you're saying; I just am not able to reproduce this problem on my PC with a wx.__version__ of '2.8.6.1-r198-2', with or without your test.