wxGrid: not possible to set table member variable to NULL

PgmHelmi pgmhelmi at telering.at
Tue Jan 2 22:23:59 PST 2007


This is necessary if, like in my case, I have a table assigned to the 
grid without giving owership of it to wxGrid. If I delete the table 
before the grid is deleted, an access violation is happening because in 
2.8.0 in the destructor of wxGrid the not owned table is accessed, if it 
is not NULL. In wxGrid::SetTable the member variable is not set to NULL 
if NULL is passed. Only if I inherit from wxGrid I can access the 
protected table member variable. Could wxGrid::SetTable be changed to 
set the table to NULL or is there another soulution?

Kind regards

PgmHelmi




More information about the wx-users mailing list