I'm not sure where to submit a patch but the wxGridCellEditor and wxGridCellRenderer classes should not be automatically deleted. The grid control takes ownership of these objects causing a crash after the grid is deleted. I have attached a patch for the grid binding file.

Les
--- C:/wxLua-svn/wxLua/bindings/wxwidgets/wxadv_grid.i  Fri Dec 05 16:38:30 2014
+++ C:/wxLua/bindings/wxwidgets/wxadv_grid.i    Fri Dec 05 16:02:03 2014
@@ -39,7 +39,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellWorker
 
-class %delete wxGridCellWorker : public wxClientDataContainer
+class wxGridCellWorker : public wxClientDataContainer
 {
     // wxGridCellWorker() - base class only
 
@@ -52,7 +52,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellRenderer
 
-class %delete wxGridCellRenderer : public wxGridCellWorker
+class wxGridCellRenderer : public wxGridCellWorker
 {
     //wxGridCellRenderer() - no constructor abstract class
 
@@ -63,7 +63,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellStringRenderer
 
-class %delete wxGridCellStringRenderer : public wxGridCellRenderer
+class wxGridCellStringRenderer : public wxGridCellRenderer
 {
     wxGridCellStringRenderer( );
 };
@@ -71,7 +71,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellNumberRenderer
 
-class %delete wxGridCellNumberRenderer : public wxGridCellStringRenderer
+class wxGridCellNumberRenderer : public wxGridCellStringRenderer
 {
     wxGridCellNumberRenderer( );
 };
@@ -79,7 +79,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellFloatRenderer
 
-class %delete wxGridCellFloatRenderer : public wxGridCellStringRenderer
+class wxGridCellFloatRenderer : public wxGridCellStringRenderer
 {
     wxGridCellFloatRenderer(int width = -1, int precision = -1 );
 
@@ -92,7 +92,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellBoolRenderer
 
-class %delete wxGridCellBoolRenderer : public wxGridCellRenderer
+class wxGridCellBoolRenderer : public wxGridCellRenderer
 {
     wxGridCellBoolRenderer( );
 };
@@ -100,7 +100,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellDateTimeRenderer
 
-class %delete wxGridCellDateTimeRenderer : public wxGridCellStringRenderer
+class wxGridCellDateTimeRenderer : public wxGridCellStringRenderer
 {
     wxGridCellDateTimeRenderer(const wxString& outformat = 
wxDefaultDateTimeFormat, const wxString& informat = wxDefaultDateTimeFormat );
 };
@@ -108,7 +108,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellEnumRenderer
 
-class %delete wxGridCellEnumRenderer : public wxGridCellStringRenderer
+class wxGridCellEnumRenderer : public wxGridCellStringRenderer
 {
     wxGridCellEnumRenderer( const wxString& choices = "" );
 };
@@ -116,7 +116,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellAutoWrapStringRenderer
 
-class %delete wxGridCellAutoWrapStringRenderer : public 
wxGridCellStringRenderer
+class wxGridCellAutoWrapStringRenderer : public wxGridCellStringRenderer
 {
     wxGridCellAutoWrapStringRenderer( );
 };
@@ -124,7 +124,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellEditor
 
-class %delete wxGridCellEditor : public wxGridCellWorker
+class wxGridCellEditor : public wxGridCellWorker
 {
     // wxGridCellEditor() - no constructor abstract class
 
@@ -159,7 +159,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellTextEditor
 
-class %delete wxGridCellTextEditor : public wxGridCellEditor
+class wxGridCellTextEditor : public wxGridCellEditor
 {
     wxGridCellTextEditor( );
 };
@@ -167,7 +167,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellNumberEditor
 
-class %delete wxGridCellNumberEditor : public wxGridCellTextEditor
+class wxGridCellNumberEditor : public wxGridCellTextEditor
 {
     wxGridCellNumberEditor(int min = -1, int max = -1 );
 };
@@ -175,7 +175,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellFloatEditor
 
-class %delete wxGridCellFloatEditor : public wxGridCellTextEditor
+class wxGridCellFloatEditor : public wxGridCellTextEditor
 {
     wxGridCellFloatEditor(int width = -1, int precision = -1 );
 };
@@ -183,7 +183,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellBoolEditor
 
-class %delete wxGridCellBoolEditor : public wxGridCellEditor
+class wxGridCellBoolEditor : public wxGridCellEditor
 {
     wxGridCellBoolEditor( );
 };
@@ -191,7 +191,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellChoiceEditor
 
-class %delete wxGridCellChoiceEditor : public wxGridCellEditor
+class wxGridCellChoiceEditor : public wxGridCellEditor
 {
     wxGridCellChoiceEditor(const wxArrayString& choices, bool allowOthers = 
false );
 };
@@ -199,7 +199,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellEnumEditor
 
-class %delete wxGridCellEnumEditor : public wxGridCellChoiceEditor
+class wxGridCellEnumEditor : public wxGridCellChoiceEditor
 {
     wxGridCellEnumEditor( const wxString& choices = "" );
 };
@@ -207,7 +207,7 @@
 // ---------------------------------------------------------------------------
 // wxGridCellAutoWrapStringEditor
 
-class %delete wxGridCellAutoWrapStringEditor : public wxGridCellTextEditor
+class wxGridCellAutoWrapStringEditor : public wxGridCellTextEditor
 {
     wxGridCellAutoWrapStringEditor( );
 };
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to