本文介绍了应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我的Windows服务在启动时崩溃了。我只有来自事件日志的消息:

I have windows service that crashes during starting. I have only message from event log:

错误应用程序名称:MyService.exe,版本:5.0.36.2,时间戳:0x57d16d1a

错误模块名称:clr .dll,版本:4.6.1085.0,时间戳:0x57a4fd94

异常代码:0xc0000409

故障偏移量:0x000000000030a3f8

故障进程ID:0xe28

错误的应用程序启动时间:0x01d2283fb490ded5

错误的应用程序路径:C:\ MyService \ MyService.exe

错误模块路径:C: \ Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll

报告ID:17c361a7-9433-11e6-80c1-0050568105e0

Faulting包裹全名:

错误包裹相关申请ID:

Faulting application name: MyService.exe, version: 5.0.36.2, time stamp: 0x57d16d1a
Faulting module name: clr.dll, version: 4.6.1085.0, time stamp: 0x57a4fd94
Exception code: 0xc0000409
Fault offset: 0x000000000030a3f8
Faulting process id: 0xe28
Faulting application start time: 0x01d2283fb490ded5
Faulting application path: C:\MyService\MyService.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 17c361a7-9433-11e6-80c1-0050568105e0
Faulting package full name:
Faulting package-relative application ID:

知道为什么aplication(服务)崩溃了吗?

Any idea why aplication (service) crashes?

谢谢,Zdenek

推荐答案

感谢您在此发帖。

异常代码0xc0000409表示堆栈缓冲区ove rflow。信息较少,我无法提供更多信息。所以我建议你使用
来获取关于崩溃的详细信息。

The exception code 0xc0000409 indicate a stack buffer overflow. There is less information and I cannot provide more from this. So I suggest you useWinDbg to get the detail information about your crash.

这是一个关于如何使用WinDbg的文档,你可以参考。

Here is a document about how to use WinDbg, you could refer to.

http://www.codeproject.com/Articles/6084/Windows-Debuggers-Part-A-WinDbg-教程

还有一个类似的案例作为参考。

And also a similar case for you as a reference.

https://social.msdn.microsoft.com/Forums/sqlserver/ en-US / aa84a49e-6bfe-4b89-928a-ea477e73c07e / clr-exception-0xc0000409?forum = clr

希望这可以为您提供帮助。

Hope this could be help of you.

最诚挚的问候,

Sera Yu


这篇关于应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-21 20:27