diff --git a/client/sysmon_win.cpp b/client/sysmon_win.cpp index 7d25d1b98b..b1fc763de2 100644 --- a/client/sysmon_win.cpp +++ b/client/sysmon_win.cpp @@ -186,6 +186,10 @@ static DWORD WINAPI WindowsMonitorSystemPowerThread( LPVOID ) { WNDCLASS wc; MSG msg; + // Initialize diagnostics framework for this thread + // + diagnostics_thread_init(BOINC_DIAG_DEFAULTS); + wc.style = CS_GLOBALCLASS; wc.lpfnWndProc = (WNDPROC)WindowsMonitorSystemPowerWndProc; wc.cbClsExtra = 0; @@ -359,7 +363,11 @@ static void windows_detect_autoproxy_settings() { } static DWORD WINAPI WindowsMonitorSystemProxyThread( LPVOID ) { - + + // Initialize diagnostics framework for this thread + // + diagnostics_thread_init(BOINC_DIAG_DEFAULTS); + // notify the main client thread that detecting proxies is // supported. working_proxy_info.autodetect_proxy_supported = true;