X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shell%2Fmain.cpp;h=56118a51e5eb52de901d325f86e59c2410a54efe;hb=756019c2518d320c51cf425a6a39512173a66b30;hp=e5766290891cc3b8e03417873998cb12d08712c8;hpb=8b3b545cac12444bd253426570a3c248419211bf;p=casparcg diff --git a/shell/main.cpp b/shell/main.cpp index e57662908..56118a51e 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -147,12 +147,16 @@ void print_info() LONG WINAPI UserUnhandledExceptionFilter(EXCEPTION_POINTERS* info) { - CASPAR_LOG(fatal) << L"#######################\n UNHANDLED EXCEPTION: \n" - << L"Adress:" << info->ExceptionRecord->ExceptionAddress << L"\n" - << L"Code:" << info->ExceptionRecord->ExceptionCode << L"\n" - << L"Flag:" << info->ExceptionRecord->ExceptionFlags << L"\n" - << L"Info:" << info->ExceptionRecord->ExceptionInformation << L"\n" - << L"Continuing execution. \n#######################"; + try + { + CASPAR_LOG(fatal) << L"#######################\n UNHANDLED EXCEPTION: \n" + << L"Adress:" << info->ExceptionRecord->ExceptionAddress << L"\n" + << L"Code:" << info->ExceptionRecord->ExceptionCode << L"\n" + << L"Flag:" << info->ExceptionRecord->ExceptionFlags << L"\n" + << L"Info:" << info->ExceptionRecord->ExceptionInformation << L"\n" + << L"Continuing execution. \n#######################"; + } + catch(...){} return EXCEPTION_CONTINUE_EXECUTION; }