Index: src/chext/dllmain.cpp =================================================================== diff -u -N -rb79aca0d66b1084f230022efe39cc89307482e6d -r4572f6cddf7dab06b1de99504a6bbd3680d11e6d --- src/chext/dllmain.cpp (.../dllmain.cpp) (revision b79aca0d66b1084f230022efe39cc89307482e6d) +++ src/chext/dllmain.cpp (.../dllmain.cpp) (revision 4572f6cddf7dab06b1de99504a6bbd3680d11e6d) @@ -20,13 +20,26 @@ { DisableThreadLibraryCalls(hInstance); - TLogger lg; - BOOST_LOG_SEV(lg, debug) << L"DllMain - attaching to process: " << hInstance << L", " << dwReason << L", " << lpReserved; + try + { + TLogger lg; + BOOST_LOG_SEV(lg, debug) << L"DllMain - attaching to process: " << hInstance << L", " << dwReason << L", " << lpReserved; + } + catch (const std::exception&) + { + } } else if (dwReason == DLL_PROCESS_DETACH) { - TLogger lg; - BOOST_LOG_SEV(lg, debug) << L"DllMain - detaching from process: " << hInstance << L", " << dwReason << L", " << lpReserved; + try + { + TLogger lg; + BOOST_LOG_SEV(lg, debug) << L"DllMain - detaching from process: " << hInstance << L", " << dwReason << L", " << lpReserved; + } + catch (const std::exception&) + { + + } } return _AtlModule.DllMain(dwReason, lpReserved);