Okay, I've been at this for hours, with little progress. The problem has something to do with reference counting on the editor in the GridCellAttr. I've been able to delay the segfault until another cell is selected by adding a editor.IncRef() call just before setting it to the CellAttr, but can't get further than that.

Tomorrow out of curiosity I'll do regression testing, but I'm pretty sure I'll find that this was a problem before my recent grid changes. Google turned up a discussion of a similar problem that was introduced in wxWidgets 2.6.1 that didn't exist in 2.6.0 and which has been fixed in CVS. I'm hoping that turns out to be the culprit, in which case we wait for the fix.

Turns out we aren't really using the renderers and editors in the intended fashion: we should be instantiating one of each type and then cloning or IncRef'ing that single instance instead of always instantiating new instances each time. But that probably isn't the root of the problem...

--
Paul McNett
http://paulmcnett.com
http://dabodev.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to