凡由Environment.FailFast()创建的应用程序转储所在的磁盘上? [英] Where is the application dump created by Environment.FailFast() located on the disk?

查看:159
本文介绍了凡由Environment.FailFast()创建的应用程序转储所在的磁盘上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中使用Environment.FailFast()。 MSDN文档说,它创建应用程序终止过程中的应用程序转储。

I am trying to use Environment.FailFast() in my application. The MSDN documentation says that it creates an application dump during application termination.

故障快速转移方法写入消息字符串到Windows
应用程序事件日志, 创建转储您的应用程序,然后
终止当前进程。消息字符串也包括在
错误微软报告。

The FailFast method writes the message string to the Windows Application event log, creates a dump of your application, and then terminates the current process. The message string is also included in error reporting to Microsoft.

有人可以告诉我的位置在哪里转储?创建

Can someone direct me to the location where the dump is created?

推荐答案

我用下面的代码来重现问题:

I used the following code to reproduce the issue:

Environment.FailFast("Something bad happened");

您需要添加正确的注册表项放置它转储在您需要的位置,或者你可以阅读它找到位置。下面是注册表项:

You need to add the correct registry entries for it to place the dump in your desired location or you can read it to find the location. Here is the registry key:

这是

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \Windows错误Reporting\LocalDumps

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps

您可以阅读更多有关的获取完整的用户模式转储自动当你的进程崩溃

You can read more about other options in Getting full user mode dumps automatically when your process crashes.

这篇关于凡由Environment.FailFast()创建的应用程序转储所在的磁盘上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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