gouchangjiang / opengeoda

Automatically exported from code.google.com/p/opengeoda
GNU General Public License v3.0
0 stars 0 forks source link

Table Crash after editing cell #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The program crashes when trying to close a project after a cell in the Table 
has been manually edited.  It happens every time on Windows and Mac.

Original issue reported on code.google.com by mmcc...@gmail.com on 9 Sep 2011 at 12:00

GoogleCodeExporter commented 9 years ago
This is almost certainly a bug in wxGrid.  I noticed that that test DataViewer 
program never crashes after editing a cell.  The only difference between 
between DataViewer and OpenGeoDa is the line that associates the Table with the 
underlying data:

grid->SetTable(grid_base, false); // false to not take ownership
grid->SetTable(grid_base, true); // false to not take ownership

Setting the ownership flag to false seems to cause the problem.  It looks as 
though I'll have to rework OpenGeoDa so that the wxGrid stays open, and is only 
hidden until the project closes.  I found enough hits on Google for strange 
bugs related to editing cells in wxWidgets tables that I'm pretty sure this is 
a wxWidgets bug.

Original comment by mmcc...@gmail.com on 9 Sep 2011 at 11:36

GoogleCodeExporter commented 9 years ago
Workaround implemented in 0.9.9.15.6

Original comment by mmcc...@gmail.com on 10 Sep 2011 at 12:13