[wxPython-users] GridCellNumberEditor crash
Robin Dunn
robin at alldunn.com
Fri Dec 1 17:01:31 PST 2006
Ronald A. Stack wrote:
> Here is a small standalone app that reproduces the error. Just to
> be clear, the crash happens when one changes the cell value from the
> present setting and instead of pressing enter or using the arrows
> to move to another cell one clicks the mouse on another cell. Note
> that I have also just run this on my Mandrake 10.1 install and it
> segfaults as well. I have provided the backtrace from gdb below.
As can be seen in the backtrace the problem comes up because there are
still pending events for the cell editor (it lost focus) but you've
already destroyed the old cell editor by creating and assigning a new
one to the cell. If you change your code so it sets the new editor
later via a wx.CallAfter then you can avoid the problem.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list