C# .NET应用程序UI因未处理的异常而崩溃

C# .NET应用程序UI因未处理的异常而崩溃,c#,crash,unhandled-exception,C#,Crash,Unhandled Exception,我有一个.NET应用程序,它使用“调度器”小部件显示选定日期筛选器的约会。 此小部件有一个下拉列表,用于选择其已显示约会的资源(人员/机器)。 问题:从该下拉列表中选择特定资源时,我看到一个进度条,指示加载,但它不停地运行,单击应用程序(host.DA.exe)UI中的任何位置会导致其崩溃,并出现标准Windows错误报告,即“host.DA”已停止工作。 我没有发现任何线索,因为这是在客户的机器上发生的,在我这边是不可复制的 以下是Windows事件查看器中的日志: Log Name:

我有一个.NET应用程序,它使用“调度器”小部件显示选定日期筛选器的约会。 此小部件有一个下拉列表,用于选择其已显示约会的资源(人员/机器)。 问题:从该下拉列表中选择特定资源时,我看到一个进度条,指示加载,但它不停地运行,单击应用程序(host.DA.exe)UI中的任何位置会导致其崩溃,并出现标准Windows错误报告,即“host.DA”已停止工作。 我没有发现任何线索,因为这是在客户的机器上发生的,在我这边是不可复制的

以下是Windows事件查看器中的日志:

Log Name:      Application
Source:        .NET Runtime
Date:          17.09.2014 09:02:06
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      KLINIKEN.INTERN
Description:
Application: host.da.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException
Stack:
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at System.Windows.Application.Run(System.Windows.Window)
   at Host.DA.App.Main()

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-09-17T07:02:06.000000000Z" />
    <EventRecordID>14947</EventRecordID>
    <Channel>Application</Channel>
    <Computer>KLINIKEN.INTERN</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Application: host.da.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException
Stack:
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
   at System.Windows.Threading.Dispatcher.Run()
   at System.Windows.Application.RunDispatcher(System.Object)
   at System.Windows.Application.RunInternal(System.Windows.Window)
   at System.Windows.Application.Run(System.Windows.Window)
   at Host.DA.App.Main()
</Data>
  </EventData>
</Event>
日志名称:应用程序
源:.NET运行时
日期:17.09.2014 09:02:06
事件ID:1026
任务类别:无
级别:错误
关键词:经典
用户:不适用
计算机:KLINIKEN.INTERN
说明:
应用程序:host.da.exe
框架版本:v4.0.30319
描述:由于未处理的异常,进程已终止。
异常信息:System.Runtime.InteropServices.SEHException
堆栈:
位于MS.Win32.unsafentivemethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
位于System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
位于System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
在System.Windows.Threading.Dispatcher.Run()中
位于System.Windows.Application.RunDispatcher(System.Object)
位于System.Windows.Application.RunInternal(System.Windows.Window)
在System.Windows.Application.Run(System.Windows.Window)中
在Host.DA.App.Main()上
事件Xml:
1026
2.
0
0x8000000000000
14947
应用
实习医生
应用程序:host.da.exe
框架版本:v4.0.30319
描述:由于未处理的异常,进程已终止。
异常信息:System.Runtime.InteropServices.SEHException
堆栈:
位于MS.Win32.unsafentivemethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
位于System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
位于System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
在System.Windows.Threading.Dispatcher.Run()中
位于System.Windows.Application.RunDispatcher(System.Object)
位于System.Windows.Application.RunInternal(System.Windows.Window)
在System.Windows.Application.Run(System.Windows.Window)中
在Host.DA.App.Main()上
我们没有向客户提供此版本应用程序的任何符号。 因此,生成minidump对分析没有帮助。 对我来说,这似乎是一个未经处理的异常,但我想知道即使是.NET Framework也无法捕获的异常是什么


任何提示/指导都将不胜感激。

SEHException意味着您的项目中存在导致异常的非托管代码,可能是您的“调度程序小部件”或任何[DllImport]。。。如果没有关于代码的更多信息,很难说会发生什么。。。如果您搜索我了解的非托管代码引发的SEHException异常,您可以得到一些线索。具有讽刺意味的是,除了AssemblyInfo.cs中的[assembly:ComVisible(false)]之外,我们的代码中没有这样的DllImport。不确定此处发生了什么。请添加更多信息,例如.net版本、visual studio版本、引用的程序集、windows版本等。