kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #02952
Crash on closing with wx-2.9
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"Marco Serantoni" <marco.serantoni@...>
-
Date:
Sun, 19 Jul 2009 22:59:49 -0000
-
User-agent:
eGroups-EW/0.82
I think is self explantory...
During the destruction of the statusbar and the other perimetral objects OnPaints events are enqueued, happens that those events are handled and crashhappens.
Index: common/basicframe.cpp
===================================================================
--- common/basicframe.cpp (revision 1880)
+++ common/basicframe.cpp (working copy)
@@ -68,6 +68,10 @@
if( wxGetApp().m_HtmlCtrl )
delete wxGetApp().m_HtmlCtrl;
wxGetApp().m_HtmlCtrl = NULL;
+
+ /* This needed for OSX: avoids furter OnDraw processing after this destructor
+ and before the native window is destroyed */
+ this->Freeze();
}