Browse Source

CrashCatch test

Brian Fiete 6 years ago
parent
commit
1e8004981f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      BeefBoot/BeefBoot.cpp

+ 11 - 0
BeefBoot/BeefBoot.cpp

@@ -13,6 +13,11 @@
 #include "BeefySysLib/util/HashSet.h"
 #include "BeefySysLib/util/MultiHashSet.h"
 
+//#define TEST_CRASH
+#ifdef TEST_CRASH
+#include "CrashCatcher.h"
+#endif
+
 //#include <mmsystem.h>
 //#include <shellapi.h>
 //#include <Objbase.h>
@@ -28,6 +33,12 @@ BF_IMPORT void BF_CALLTYPE Debugger_ProgramDone();
 
 int main(int argc, char* argv[])
 {	
+#ifdef TEST_CRASH
+	CrashCatcher catcher;
+	catcher.SetCrashReportKind(BfpCrashReportKind_GUI);
+	catcher.Test();
+#endif
+
 	BfpSystem_SetCommandLine(argc, argv);
 
 	BfpThread_SetName(NULL, "MainThread", NULL);