Don't use try/catch if exceptions support is disabled.
Closes #15954. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -870,6 +870,7 @@ void *wxThreadInternal::PthreadStart(wxThread *thread)
|
||||
wxT("Thread %p Entry() returned %lu."),
|
||||
THR_ID(pthread), wxPtrToUInt(pthread->m_exitcode));
|
||||
}
|
||||
#ifndef wxNO_EXCEPTIONS
|
||||
#ifdef HAVE_ABI_FORCEDUNWIND
|
||||
// When using common C++ ABI under Linux we must always rethrow this
|
||||
// special exception used to unwind the stack when the thread was
|
||||
@@ -882,7 +883,11 @@ void *wxThreadInternal::PthreadStart(wxThread *thread)
|
||||
throw;
|
||||
}
|
||||
#endif // HAVE_ABI_FORCEDUNWIND
|
||||
wxCATCH_ALL( wxTheApp->OnUnhandledException(); )
|
||||
catch ( ... )
|
||||
{
|
||||
wxTheApp->OnUnhandledException();
|
||||
}
|
||||
#endif // !wxNO_EXCEPTIONS
|
||||
|
||||
{
|
||||
wxCriticalSectionLocker lock(thread->m_critsect);
|
||||
|
Reference in New Issue
Block a user