在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.
有什么我可以做的事情来继续调用堆栈?