← Back to team overview

kicad-developers team mailing list archive

Crash on closing with wx-2.9


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();