]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/thread/thread.cpp
Added support for current version of "emxomf".
[wxWidgets.git] / samples / thread / thread.cpp
index dd421d794dce67150dc52e49ee8143c1c5f37bc4..6772a0bbec474b9777a72df25af06df63b6978dd 100644 (file)
@@ -47,7 +47,7 @@ class MyApp : public wxApp
 {
 public:
     MyApp();
-    virtual ~MyApp();
+    virtual ~MyApp(){};
 
     virtual bool OnInit();
 
@@ -358,10 +358,6 @@ MyApp::MyApp()
     m_waitingUntilAllDone = false;
 }
 
-MyApp::~MyApp()
-{
-}
-
 // `Main program' equivalent, creating windows and returning main app frame
 bool MyApp::OnInit()
 {
@@ -730,6 +726,7 @@ void MyFrame::OnStartWorker(wxCommandEvent& WXUNUSED(event))
     if ( thread->Create() != wxTHREAD_NO_ERROR )
     {
         wxLogError(wxT("Can't create thread!"));
+        return;
     }
 
     m_dlgProgress = new wxProgressDialog