如何解决Windows故障错误 [英] how can i resolve windows crash error
问题描述
我的应用程序会在客户端应用程序文件夹exe文件,并试图从那里运行它。即使exe文件运行正常和功能不被干扰,我得到它详情如下崩溃弹出。同样的东西的作品在我们的发展和放大器;试验机没有崩溃弹出。
只有我设法找到了暂时的解决情况的事情是设置注册表项,如下
HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows错误报告DontShowUI = 1
现在我无言以对作为唯一的线索就是这可能是造成这个异常 more.dll
我在错误的详细信息发现这不是我添加为我的项目的参考。 。有没有更好的方法以编程方式解决这个问题,或者有人可以帮助我更多这方面的想法。
问题签名:
题事件名称:APPCRASH
应用名称:MNM_Interface.exe
应用程序版本:1.0.0.0
应用时间戳:54eaf32a
故障模块名称:多。 DLL
故障模块版本:1.2.1.0
故障模块时间戳:54e2d422
异常代码:C0000005
异常偏移:0040bb62
OS版本:6.1.7601.2.1.0。 256.4
区域设置ID:1033
其他信息1:0a9e
其他信息2:0a9e372d3b4ad19135b953a78882e789
附加信息3:0a9e
附加信息4:0a9e372d3b4ad19135b953a78882e789
在线阅读我们的隐私声明:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
如果在线隐私声明不可用,请阅读我们的隐私声明离线:
C:\windows\system32\en-US\erofflps.txt
我不知道,如果下面的事件查看器日志将帮助,但一些东西,我认为专家们可以得到一个线索。
错误的应用程序名称:MNM_Interface.exe,版本:1.0.0.0,时间戳:0x5523d05b
错误模块名称:more.dll,版本:1.2.1.0,时间戳:0x54e2d422
异常代码:0000005
故障抵消:0x0040bb62
出错进程ID:0x1870
错误的应用程序启动时间:0x01d0713b195e7b30
错误的应用程序路径:C:\MNM\Pictures 1.1.0\MNM_Interface.exe
错误模块路径:C:\MNM\Pictures 1.1.0\more.dll
报告编号:586ce056-dd2e-11e4-b2ce-08edb9de061e
作为@BJMyers提到
,它是一个未处理的异常。您可以编写一个外部程序来测试/处理异常。你可以有这样的事情:
AppDomain.CurrentDomain.UnhandledException + = UnhandledExceptionFunction;
私人无效UnhandledExceptionFunction(对象发件人,UnhandledExceptionEventArgs参数)
{
异常前=(例外)args.ExceptionObject)
的StackFrame帧=新的StackFrame(0);
字符串的方法;
法= frame.GetMethod()ReflectedType.FullName。
}
开始会看的好办法 ARGS
参数,以获得 ExceptionType
。如果你想获得更多的细节,例如引起异常的方法,你可以看看在的StackFrame
类
My application creates an exe in the client application folder and tries to run it from there. Even though the exe runs properly and functionality is not disturbed, I get a crash popup with below details in it. The same stuff works in in our development & test machines without crash popups.
Only thing I managed to find out to temporarily fix this situation was to set the registry entry as below
HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting DontShowUI =1
Now I am clueless of what could be causing this exception as the only hint is more.dll
which I found in the error details and this is not something that I added as reference in my project. Is there a better way to programmatically resolve this issue or can someone please help me with more ideas on this.
Problem signature:
Problem Event Name: APPCRASH
Application Name: MNM_Interface.exe
Application Version: 1.0.0.0
Application Timestamp: 54eaf32a
Fault Module Name: more.dll
Fault Module Version: 1.2.1.0
Fault Module Timestamp: 54e2d422
Exception Code: c0000005
Exception Offset: 0040bb62
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\windows\system32\en-US\erofflps.txt
I have no idea if below event viewer logs will help but something which i thought the experts can get a clue .
Faulting application name: MNM_Interface.exe, version: 1.0.0.0, time stamp: 0x5523d05b
Faulting module name: more.dll, version: 1.2.1.0, time stamp: 0x54e2d422
Exception code: 0xc0000005
Fault offset: 0x0040bb62
Faulting process id: 0x1870
Faulting application start time: 0x01d0713b195e7b30
Faulting application path: C:\MNM\Pictures 1.1.0\MNM_Interface.exe
Faulting module path: C:\MNM\Pictures 1.1.0\more.dll
Report Id: 586ce056-dd2e-11e4-b2ce-08edb9de061e
As @BJMyers mentioned, it is an unhandled exception. You can write an external program to test/handle the exception. You can have something like:
AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionFunction;
private void UnhandledExceptionFunction(Object sender, UnhandledExceptionEventArgs args)
{
Exception ex = (Exception)args.ExceptionObject)
StackFrame frame = new StackFrame(0);
string method;
method = frame.GetMethod().ReflectedType.FullName;
}
A good way to start would be to look at the args
parameter to get the ExceptionType
. If you want to get more detail, e.g the method that caused the exception, you can take a look at the StackFrame
class
这篇关于如何解决Windows故障错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!