From: Mattia B. <mat...@li...> - 2004-12-26 15:28:33
|
On Wed, 22 Dec 2004 14:33:28 -0500 Cheetah <fa...@gm...> wrote: Hello, > I'm experiencing some crashes when using Wx::Grid::RegisterDataType. > As near as I can tell, the problem is that wxPerl doesn't increment > the refcount of the objects passed, and so when the calling function > exits, those objects are freed. Then when wxGrid tries to use them, > it crashes to no great surprise. > > The simple workaround is to store the renderer and editor in attrs of > my Wx::PlGridTable class so that they don't get freed until the grid > goes away. I must admit I do not use Wx::Grid myself, but if you could provide the mithycal "minimal test case" I will try to look into it. Thanks! Mattia |