diff --git a/samples/debugrpt/debugrpt.cpp b/samples/debugrpt/debugrpt.cpp index 3d4fd14be5..f6a0c208b2 100644 --- a/samples/debugrpt/debugrpt.cpp +++ b/samples/debugrpt/debugrpt.cpp @@ -137,7 +137,9 @@ class MyApp : public wxApp public: virtual bool OnInit() { +#if wxUSE_ON_FATAL_EXCEPTION wxHandleFatalExceptions(); +#endif if ( !wxApp::OnInit() ) return false;