我的Winform应用程序UI在进行远程控制后挂起

时间:2017-11-22 12:02:08

标签: vb.net

我的Winform应用程序在机器A上运行。我从机器B远程控制机器A然后断开机器B中的网络连接。一段时间后重新连接网络连接我看到我的应用程序执行我的脚本但应用程序UI处于挂起状态。 / p>

所以我使用WinDbg(x64)进行调试我看到应用程序主线程卡住了这个日志

    ntdll.dll!ZwWaitForMultipleObjects+0x14
KERNELBASE.dll!WaitForMultipleObjectsEx+0xf0
USER32.dll!MsgWaitForMultipleObjectsEx+0x1e0
combase.dll!Ordinal111+0x63b
combase.dll!CoGetCurrentLogicalThreadId+0x20f
combase.dll!CoWaitForMultipleHandles+0xb3
clr.dll!MetaDataGetDispenser+0xcd4a
clr.dll!MetaDataGetDispenser+0xccb4
clr.dll!MetaDataGetDispenser+0x76efd
clr.dll!MetaDataGetDispenser+0x8f4d5
[Managed to Unmanaged Transition]
mscorlib.dll!System.Threading.WaitHandle.InternalWaitOne+0x1b
mscorlib.dll!System.Threading.WaitHandle.WaitOne+0x2e
System.Windows.Forms.dll!System.Windows.Forms.Control.WaitForWaitHandle+0x1ed
System.Windows.Forms.dll!System.Windows.Forms.Control.MarshaledInvoke+0x431
System.Windows.Forms.dll!System.Windows.Forms.Control.Invoke+0x60
System.Windows.Forms.dll!System.Windows.Forms.WindowsFormsSynchronizationContext.Send+0x74
System.dll!SystemEventInvokeInfo.Invoke+0x9c
System.dll!Microsoft.Win32.SystemEvents.RaiseEvent+0x129
System.dll!Microsoft.Win32.SystemEvents.OnDisplaySettingsChanging+0x76
System.dll!Microsoft.Win32.SystemEvents.WindowProc+0x272
[Unmanaged to Managed Transition]
[Native Frame: IL Method without Metadata]
clr.dll+0x21fe
USER32.dll!CallWindowProcW+0x4d0
USER32.dll!DispatchMessageW+0x1af
[Native Frame: IL Method without Metadata]
[Managed to Unmanaged Transition]
System.Windows.Forms.dll!ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop+0x33e
System.Windows.Forms.dll!ThreadContext.RunMessageLoopInner+0x1c6
System.Windows.Forms.dll!ThreadContext.RunMessageLoop+0x51
Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun+0xa5
Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel+0x95
Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run+0x3ca
ExecutionAgent.exe!Execution.Agent.My.MyApplication.Main+0x64
[Unmanaged to Managed Transition]
clr.dll!LogHelp_LogAssert+0x1bf3
clr.dll!LogHelp_LogAssert+0x1ac5
clr.dll!LogHelp_LogAssert+0x27cd
clr.dll!SetRuntimeInfo+0x1580
clr.dll!SetRuntimeInfo+0x1dca
clr.dll!SetRuntimeInfo+0x1c87
clr.dll!SetRuntimeInfo+0x161d
clr.dll!SetRuntimeInfo+0x1402
clr.dll!CorExeMain+0x14
mscoreei.dll!CorExeMain+0x6d
MSCOREE.DLL!CorExeMain+0x6c
KERNEL32.dll!BaseThreadInitThunk+0x14

ntdll.dll!RtlUserThreadStart+0x21

关于导致此问题的原因的任何想法。

由于

0 个答案:

没有答案