MCPcopy Create free account
hub / github.com/DarthTon/Xenos / UnhandledExceptionFilter

Method UnhandledExceptionFilter

src/DumpHandler.cpp:90–104  ·  view source on GitHub ↗

Unhanded exception filter Exception information Exception handling status

Source from the content-addressed store, hash-verified

88/// <param name="ExceptionInfo">Exception information</param>
89/// <returns>Exception handling status</returns>
90LONG CALLBACK DumpHandler::UnhandledExceptionFilter( PEXCEPTION_POINTERS ExceptionInfo )
91{
92 auto& inst = Instance();
93
94 inst._ExceptionInfo = ExceptionInfo;
95 inst._FailedThread = GetCurrentThreadId();
96
97 if (Instance()._hWatchThd == NULL)
98 ExitProcess( 0x1338 );
99
100 // Wait for dump generation reasonable amount of time (3 min)
101 WaitForSingleObject( inst._hWatchThd, 3 * 60 * 1000 );
102
103 return EXCEPTION_CONTINUE_SEARCH;
104}
105
106/// <summary>
107/// Crash watcher

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected