C#Windows应用程序意外停止,事件查看器中发生异常 [英] C# Windows Application stops unexpectedly with exception in event viewer
本文介绍了C#Windows应用程序意外停止,事件查看器中发生异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们有一个C#Windows应用程序.此应用程序始终在服务器中运行.有时,应用程序意外停止,并在事件查看器(eventvwr)应用程序日志中记录了错误.我想知道原因和解决方案 错误.
We have a C# Windows application. This application is always running in the server. Some times the application stops unexpectedly with an error logged in the event viewer(eventvwr) application log. I would like to know the cause and the solution for this error.
所报告的错误如下所示.
The Error reported is shown below.
Application: App.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
at System.Windows.Forms.Control.BeginInvoke(System.Delegate, System.Object[])
at System.Windows.Forms.WindowsFormsSynchronizationContext.Post(System.Threading.SendOrPostCallback, System.Object)
at System.ComponentModel.AsyncOperation.Post(System.Threading.SendOrPostCallback, System.Object)
at System.ComponentModel.AsyncOperation.PostOperationCompleted(System.Threading.SendOrPostCallback, System.Object)
at App.ThreadWorker.PerformWork(App.ReportQueueInfo)
at App.ThreadWorker.<DoWork>b__0(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
推荐答案
你好
您发布的内容中没有任何内容可以指出特定问题.也许您可以告诉我们该应用程序的功能.
There is nothing in what you posted that pin-points to a specific issue. Perhaps you can tell us about what the app does.
这篇关于C#Windows应用程序意外停止,事件查看器中发生异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文