From 8ab0d5acdd286da5efe622296d06fa0d3e1c4a10 Mon Sep 17 00:00:00 2001 From: Anthony Williams Date: Fri, 9 Jan 2009 11:06:53 +0000 Subject: [PATCH] Merged change from trunk removing catch(...) clauses [SVN r50524] --- src/pthread/thread.cpp | 10 ++++++---- src/win32/thread.cpp | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/pthread/thread.cpp b/src/pthread/thread.cpp index 9e1a5146..cc71d97b 100644 --- a/src/pthread/thread.cpp +++ b/src/pthread/thread.cpp @@ -132,10 +132,12 @@ namespace boost catch(thread_interrupted const&) { } - catch(...) - { - std::terminate(); - } +// Removed as it stops the debugger identifying the cause of the exception +// Unhandled exceptions still cause the application to terminate +// catch(...) +// { +// std::terminate(); +// } detail::tls_destructor(thread_info.get()); detail::set_current_thread_data(0); diff --git a/src/win32/thread.cpp b/src/win32/thread.cpp index 9c4f82b0..a72f0538 100644 --- a/src/win32/thread.cpp +++ b/src/win32/thread.cpp @@ -169,10 +169,12 @@ namespace boost catch(thread_interrupted const&) { } - catch(...) - { - std::terminate(); - } +// Removed as it stops the debugger identifying the cause of the exception +// Unhandled exceptions still cause the application to terminate +// catch(...) +// { +// std::terminate(); +// } run_thread_exit_callbacks(); return 0; }