// OnFatalException() if necessary
#if wxUSE_ON_FATAL_EXCEPTION
-#if defined(__VISUALC__) && !defined(__WXWINCE__)
- // VC++ (at least from 4.0 up to version 7.1) is incredibly broken in that
- // a "catch ( ... )" will *always* catch SEH exceptions in it even though
- // it should have never been the case... to prevent such catches from
- // stealing the exceptions from our wxGlobalSEHandler which is only called
- // 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 8.0
- #if _MSC_VER <= 1400
- #pragma warning(disable:4535)
- #endif
-
- // note that the SE translator must be called wxSETranslator!
- #define DisableAutomaticSETranslator() _set_se_translator(wxSETranslator)
-#else // !__VISUALC__
- #define DisableAutomaticSETranslator()
-#endif // __VISUALC__/!__VISUALC__
-
// global pointer to exception information, only valid inside OnFatalException,
// used by wxStackWalker and wxCrashReport
extern EXCEPTION_POINTERS *wxGlobalSEInformation = NULL;
switch ( wxGlobalSEHandler(ep) )
{
default:
- wxFAIL_MSG( _T("unexpected wxGlobalSEHandler() return value") );
+ wxFAIL_MSG( wxT("unexpected wxGlobalSEHandler() return value") );
// fall through
case EXCEPTION_EXECUTE_HANDLER:
wxChar fullname[MAX_PATH];
if ( !::GetTempPath(WXSIZEOF(fullname), fullname) )
{
- wxLogLastError(_T("GetTempPath"));
+ wxLogLastError(wxT("GetTempPath"));
// when all else fails...
- wxStrcpy(fullname, _T("c:\\"));
+ wxStrcpy(fullname, wxT("c:\\"));
}
// use PID and date to make the report file name more unique
wxString name = wxString::Format
(
- _T("%s_%s_%lu.dmp"),
+ wxT("%s_%s_%lu.dmp"),
wxTheApp ? (const wxChar*)wxTheApp->GetAppDisplayName().c_str()
- : _T("wxwindows"),
- wxDateTime::Now().Format(_T("%Y%m%dT%H%M%S")).c_str(),
+ : wxT("wxwindows"),
+ wxDateTime::Now().Format(wxT("%Y%m%dT%H%M%S")).c_str(),
::GetCurrentProcessId()
);