Hello!
I use MsTsc ActiveX control to add RDP functionality to my WPF application. The control is hosted inside WinFormsHost control. My application hangs on shutdown from time to time. Here is the stacktrace of the hanging thread:
win32u!NtUserMsgWaitForMultipleObjectsEx+0xcUSER32!RealMsgWaitForMultipleObjectsEx+0x78
USER32!MsgWaitForMultipleObjectsEx+0x63
mstscax!PAL_System_CondWait+0xf2
mstscax!CTSThreadInternal::ThreadSignalWait+0x20
mstscax!CTSThread::internalThreadMsgLoop+0x20f
mstscax!CTSThread::internalThreadWaitForMultipleObjects+0x87
mstscax!CTSThread::ThreadWaitForMultipleObjects+0x1ab
mstscax!CTSThread::ThreadWaitForSingleObject+0x26
mstscax!CTSWin32CoreApi::SyncForceShutdownOnRCV+0x1d7
mstscax!CTSWin32CoreApi::DestroyWin32Core+0x108
mstscax!CMsTscAx::Terminate+0x167
mstscax!CMsTscAx::ProcessWindowMessage+0xd2
mstscax!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::WindowProc+0x6f
atlthunk!AtlThunk_0x00+0x36
USER32!_InternalCallWinProc+0x2b
USER32!UserCallWinProcCheckWow+0x3aa
USER32!CallWindowProcW+0x8d
System_Windows_Forms_ni+0x7cbc91
System_Windows_Forms_ni+0x7cbafc
System_Windows_Forms_ni+0x1b77a3
System_Windows_Forms_ni+0x1b7735
System_Windows_Forms_ni+0x1b7660
0xf177066
USER32!_InternalCallWinProc+0x2b
USER32!UserCallWinProcCheckWow+0x3aa
USER32!DispatchClientMessage+0xea
USER32!__fnDWORD+0x49
ntdll!KiUserCallbackDispatcher+0x4d
win32u!NtUserDestroyWindow+0xc
Is there a way to debug this issue? MsTsc version is 10.0.17134.
Regards,
Igor.