X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c125d136d0e87702fe8964ff3eeb586b26ec821..bcd1ec333ac3ba7d36f2eed79fa52208b2514d84:/src/msw/main.cpp?ds=sidebyside diff --git a/src/msw/main.cpp b/src/msw/main.cpp index aaa5d051ae..900ef4fdef 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -69,7 +69,7 @@ // wrap real wxEntry in a try-except block to be able to call // OnFatalException() if necessary -#if wxUSE_ON_FATAL_EXCEPTION +#if wxUSE_ON_FATAL_EXCEPTION && wxUSE_BASE // global pointer to exception information, only valid inside OnFatalException, // used by wxStackWalker and wxCrashReport @@ -128,6 +128,14 @@ bool wxHandleFatalExceptions(bool doit) // if the exception is not handled elsewhere, we have to also call it from // a special SEH translator function which is called by VC CRT when a Win32 // exception occurs + + // this warns that /EHa (async exceptions) should be used when using + // _set_se_translator but, in fact, this doesn't seem to change anything + // with VC++ up to 7.1 -- to be confirmed with VC++ 8 + #if _MSC_VER <= 1310 + #pragma warning(disable:4535) + #endif + _set_se_translator(doit ? wxSETranslator : NULL); #endif @@ -183,7 +191,7 @@ int wxEntry(int& argc, wxChar **argv) } } -#endif // wxUSE_ON_FATAL_EXCEPTION +#endif // wxUSE_ON_FATAL_EXCEPTION && wxUSE_BASE #if wxUSE_GUI