From 5ac52b5da0dcfc60b8e7a641c89153ae0e4eeeee Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 29 Jan 2005 20:49:14 +0000 Subject: [PATCH] don't run the thread if its creation failed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/thread/thread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/thread/thread.cpp b/samples/thread/thread.cpp index d239920382..6772a0bbec 100644 --- a/samples/thread/thread.cpp +++ b/samples/thread/thread.cpp @@ -726,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 -- 2.45.2