2011-06-29 30 views
-1

这种错误消息的含义是什么? 我有一个C#表单应用程序,它在Windows Vista下编译得很好,当我试图在Windows 7下运行它时,我收到以下消息。任何线索是什么造成的? 我使用的Visual Studio 2008开发这个应用程序以前在Windows Vista中运行的Windows 7中运行C#应用程序时的错误消息

Description:  
    Stopped working 

Problem signature:  
    Problem Event Name: CLR20r3  
    Problem Signature 01: matrium.exe  
    Problem Signature 02: 1.0.0.0  
    Problem Signature 03: 4e0c494c  
    Problem Signature 04: System  
    Problem Signature 05: 2.0.0.0  
    Problem Signature 06: 4a275e22  
    Problem Signature 07: 3a97  
    Problem Signature 08: 394  
    Problem Signature 09: System.ComponentModel.Win32  
    Locale ID: 10313 
+2

数据你不幸发布给有关可能的原因 – abatishchev

+0

你需要什么样的数据,没有信息?这是唯一显示的消息,或者我应该如何找到关于该问题的更多信息? –

+2

实际的异常消息将提供有用的信息。如果你有源代码,你可以收集它。 – abatishchev

回答

1

CLR20r3是一个非常普通的错误消息,并没有真正告诉我们什么什么可能会错误有用。

这里最好的办法是挂钩到AppDomain中未处理的异常事件,看看发生了什么事情:

AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(HandlerMethod); 

void HandlerMethod(object sender, UnhandledExceptionEventArgs e) 
{ 
    if ((args.ExceptionObject is ThreadAbortException) != true) 
    { 
     var exception = args.ExceptionObject as Exception; 
     MessageBox.Show(exception.ToString()); 
    } 
} 
相关问题