小编Oht*_*Oht的帖子

c#:Stack在Invoke停止

在C#/ .net中,当发生错误时,堆栈将记录在Windows错误日志中.但是,我的应用程序有很多跨线程调用.堆栈跟踪似乎在每个Invoke(MarshalledInvoke)停止.

例如:

我的堆栈:

Exception Info: Facebook.FacebookApiException
Stack:
at System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
at System.Windows.Forms.Control.Invoke(System.Delegate, System.Object[])
at Test.TcpTest.InterpretData()
at Test.TcpTest.Incoming(System.String)
at Test.TcpTest.cLoop()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
Run Code Online (Sandbox Code Playgroud)

在堆栈中进一步执行的代码中发生异常.但是,堆栈每次都停在marshalledInvoke.

有什么我可以做的事情来继续调用堆栈?

c# controls tcp invoke

2
推荐指数
1
解决办法
91
查看次数

标签 统计

c# ×1

controls ×1

invoke ×1

tcp ×1