From 3e911ef34b0f92a4f8e9c63bb3968b07d3ca62d3 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Fri, 25 Oct 2013 19:44:51 +0800 Subject: [PATCH] Disabled the dialogs that might show up when exiting on Windows wxWidgets logs errors internally. When the wxLogNull object is destroyed, the default log object will be effective. Logs are displayed by calling MessageBox in a GUI application by default. --- src/xmlcopyeditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmlcopyeditor.cpp b/src/xmlcopyeditor.cpp index bfa5b2b..0a189db 100644 --- a/src/xmlcopyeditor.cpp +++ b/src/xmlcopyeditor.cpp @@ -221,8 +221,6 @@ MyApp::MyApp() MyApp::~MyApp() { - ThreadReaper::get().clear(); - delete checker; delete server; } @@ -1095,6 +1093,8 @@ MyFrame::MyFrame ( MyFrame::~MyFrame() { + ThreadReaper::get().clear(); + std::vector::iterator it; for ( it = tempFileVector.begin(); it != tempFileVector.end(); it++ ) wxRemoveFile ( *it );