From 46d36d99c708a9bd2653f256335a51233f8fa590 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 2 Jul 2016 16:25:43 +0200 Subject: [PATCH] Don't give misleading message for unhandled exceptions in a thread The application doesn't necessarily terminate when a thread dies due to an unhandled exception, even though it will often crash later. --- src/common/appbase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index f8f340f60f..63512ccd38 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -697,7 +697,9 @@ void wxAppConsoleBase::OnUnhandledException() } wxMessageOutputBest().Printf( - "Unhandled %s; terminating\n", what + "Unhandled %s; terminating %s.\n", + what, + wxIsMainThread() ? "the application" : "the thread in which it happened" ); }