| 51 | namespace caspar { |
| 52 | |
| 53 | LONG WINAPI UserUnhandledExceptionFilter(EXCEPTION_POINTERS* info) |
| 54 | { |
| 55 | try { |
| 56 | CASPAR_LOG(fatal) << L"#######################\n UNHANDLED EXCEPTION: \n" |
| 57 | << L"Address:" << info->ExceptionRecord->ExceptionAddress << L"\n" |
| 58 | << L"Code:" << info->ExceptionRecord->ExceptionCode << L"\n" |
| 59 | << L"Flag:" << info->ExceptionRecord->ExceptionFlags << L"\n" |
| 60 | << L"Info:" << (unsigned __int64)info->ExceptionRecord->ExceptionInformation << L"\n" |
| 61 | << L"Continuing execution. \n#######################"; |
| 62 | |
| 63 | CASPAR_LOG_CURRENT_CALL_STACK(); |
| 64 | } catch (...) { |
| 65 | } |
| 66 | |
| 67 | return EXCEPTION_EXECUTE_HANDLER; |
| 68 | } |
| 69 | |
| 70 | void setup_prerequisites() |
| 71 | { |
nothing calls this directly
no outgoing calls
no test coverage detected