我的申请在10天后崩溃了 [英] My application is getting crash after 10 days

查看:57
本文介绍了我的申请在10天后崩溃了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我面临一个问题"我的应用程序在10天后崩溃"。我没有处理AppDomain.CurrentDomain.UnhandledException事件处理程序。我开始知道.net CLR会在事件查看器中记录任何无法处理的异常。但是,如果我试图分析
为什么会发生这种崩溃,但事件查看器只会向我提供信息异常消息,但它不提供堆栈跟踪。如何通过事件查看器获取此异常的堆栈跟踪。


提前致谢,


Hari





点击"建议作为答案"如果这篇文章解决了你的问题或"投票有帮助"如果一篇文章对你有用,快乐编程! Hari

解决方案

你好!


我遇到过类似的问题。以下是我对此的建议:


1。 阅读 



Hello,

I'm facing one issue "my application is getting crash after 10 days". I was not handling AppDomain.CurrentDomain.UnhandledException event handler. I came to know that .net CLR logs any unhanded exception in Event viewer. But if i try to analyse why this crash happens but event viewer will provide me information only exception message but it is not provide me stack trace. How can i get stack trace for this exception through event viewer.

Thanks in advance,

Hari


click "Proposed As Answer by" if this post solves your problem or "Vote As Helpful" if a post has been useful to you Happy Programming! Hari

解决方案

Hello!

I've faced with the similar issue. Here is my suggestion about this:

1. Read this article for details. Long story short: you have to turn on creating a crush dump files via the 'Registry editor. Simplified steps:

  • Run Regedit
  • Go to the "HKEY_LOCAL_MACHINE\ Software\Microsoft\Windows\Windows Error Reporting" branch and create the LocalDumps key
  • In LocalDumps, create the myApplicationName.exe key
  • Add the following values in this key:
    "DumpFolder" = "c:\crashDumpFiles"   - crash files directory
    "DumpType" = dword: 00000002   - it's a full dump type
    "CustomDumpFlags" = dword: 00001124

2. After the application crash you can check specified directory from the 1st step and find a crash file (someFileName.dmp)

3. Open the crash dump with the Visual Studio and try to 'Debug with Managed only' or 'Debug with mixed

P.S. I've got the same error during manged call 'Clipboard.ContainsText'. See this post


这篇关于我的申请在10天后崩溃了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆