X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83dee24ca2b182a77740d33abf72b833e647bcd5..7c11806499166993dffcbb99139d5b248a2c6c82:/include/wx/msw/crashrpt.h?ds=sidebyside diff --git a/include/wx/msw/crashrpt.h b/include/wx/msw/crashrpt.h index 8f602e9b2d..6e7b725512 100644 --- a/include/wx/msw/crashrpt.h +++ b/include/wx/msw/crashrpt.h @@ -48,7 +48,10 @@ enum // // this creates a much larger mini dump than just wxCRASH_REPORT_STACK but // still much smaller than wxCRASH_REPORT_LOCALS one - wxCRASH_REPORT_GLOBALS = 4 + wxCRASH_REPORT_GLOBALS = 4, + + // default is to create the smallest possible crash report + wxCRASH_REPORT_DEFAULT = wxCRASH_REPORT_LOCATION | wxCRASH_REPORT_STACK }; // ---------------------------------------------------------------------------- @@ -101,10 +104,14 @@ struct WXDLLIMPEXP_BASE wxCrashReport // // if ep pointer is NULL, the global exception info which is valid only // inside wxApp::OnFatalException() is used - static bool Generate(int flags = wxCRASH_REPORT_LOCATION | - wxCRASH_REPORT_STACK, + static bool Generate(int flags = wxCRASH_REPORT_DEFAULT, _EXCEPTION_POINTERS *ep = NULL); + + // generate a crash report from outside of wxApp::OnFatalException(), this + // can be used to take "snapshots" of the program in wxApp::OnAssert() for + // example + static bool GenerateNow(int flags = wxCRASH_REPORT_DEFAULT); }; #endif // wxUSE_CRASHREPORT