From 8228dac8ff8c81554c8af8284aed5a277f472cc6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Jan 2005 13:10:16 +0000 Subject: [PATCH] wxUSE_CRASHREPORT and wxUSE_STACKWALKER can't be used if wxUSE_ON_FATAL_EXCEPTION == 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/setup0.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index 963043989c..173497a55b 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -1106,7 +1106,7 @@ // Set this to 1 to be able to use wxCrashReport::Generate() to create mini // dumps of your program when it crashes (or at any other moment) // -// Default is 1. +// Default is 1 if supported by the compiler. // // Recommended setting: 1, set to 0 if your programs never crash #define wxUSE_CRASHREPORT 1 @@ -1115,11 +1115,18 @@ // machine-readable minidumop created by wxCrashReport::Generate()) stack back // trace when your program crashes using wxStackWalker // -// Default is 1. +// Default is 1 if supported by the compiler. // // Recommended setting: 1, set to 0 if your programs never crash #define wxUSE_STACKWALKER 1 +#if !wxUSE_ON_FATAL_EXCEPTION + #undef wxUSE_CRASHREPORT + #define wxUSE_CRASHREPORT 0 + #undef wxUSE_STACKWALKER + #define wxUSE_STACKWALKER 0 +#endif + // ---------------------------------------------------------------------------- // obsolete settings // ---------------------------------------------------------------------------- -- 2.45.2