grid crash on editor cell

Hi all.
I
customized on my grid cells so that they can be of two types, a cell
that can receive a date and a cell that can receive text. There is a button that when pressed cancel all changes made in the cells, the problem occurs exactly when:

-I changed one date on the first cell
I pressed the refresh-pulsed
Re-exchange the value of the first cell, it is precisely then that the crash occurs(Linux Gentoo wxpython 2.8.10.1 python 2.6.2, I have not tried it on windows).

Is there some setting that crashes the application?.
Somebody can help me?
Attached script

gestgrid.py (28.9 KB)

···


Fabio Spadaro
www.fabiospadaro.com

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Please try to reproduce the problem in a sample app that is a lot shorter than 850 lines. MakingSampleApps - wxPyWiki

In the meantime, crashes in Grid related code are usually due to not properly incrementing the reference count of things like attribute, editor or renderer objects. wxGrid uses it's own reference counting scheme for these object to allow instances to be shared by multiple cells, rows, cols, whatever in order to save memory. If you don't increment the reference count when needed then wxGrid may delete the object while it is still being used somewhere else in the grid.

···

On 5/20/10 2:52 PM, Fabio Spadaro wrote:

Hi all.
I customized on my grid cells so that they can be of two types, a cell
that can receive a date and a cell that can receive text. There is a
button that when pressed cancel all changes made in the cells, the
problem occurs exactly when:
-I changed one date on the first cell
I pressed the refresh-pulsed
Re-exchange the value of the first cell, it is precisely then that the
crash occurs(Linux Gentoo wxpython 2.8.10.1 python 2.6.2, I have not
tried it on windows).
Is there some setting that crashes the application?.
Somebody can help me?

--
Robin Dunn
Software Craftsman

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en