windows 如何为我的应用禁用 werfault.exe?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3629519/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 15:10:26  来源:igfitidea点击:

How do I disable werfault.exe for my app?

windowscrash

提问by Jerome K

I have to run this program millions of times. It's not the most stable beast, and it crashes around 5% of the time. When this happens, I don't want a popup, or WerFault to take 30 sec to take a dump, or anything - I just want it to silently and immediately disappear, and I'll figure out it crashed from the process exit code.

我必须运行这个程序数百万次。它不是最稳定的野兽,大约有 5% 的时间会崩溃。发生这种情况时,我不希望弹出窗口或 WerFault 花费 30 秒进行转储或其他任何事情 - 我只希望它静默并立即消失,然后我会弄清楚它是从进程退出代码中崩溃的。

I already have Windows Error Reporting Service disabled, and my AEDebug key deleted. However, werfault is still trying to take a dump on crash. Help?

我已经禁用了 Windows 错误报告服务,并删除了我的 AEDebug 密钥。但是,werfault 仍在尝试在崩溃时进行转储。帮助?

回答by WeekendDiver

That can be annoying... especially if you're doing a lot of code-debug-compile-deploy-test iterations.

这可能很烦人……尤其是当您进行大量代码-调试-编译-部署-测试迭代时。

It looks like there are a couple of registry entries here that help control the behavior: http://msdn.microsoft.com/en-us/library/bb513638(VS.85).aspx

看起来这里有几个注册表项可以帮助控制行为:http: //msdn.microsoft.com/en-us/library/bb513638(VS.85).aspx

Here's some information on how to exclude your particular application from error reporting, without completely disabling error reporting: http://msdn.microsoft.com/en-us/library/bb513617(v=VS.85).aspx

以下是有关如何在不完全禁用错误报告的情况下从错误报告中排除特定应用程序的一些信息:http: //msdn.microsoft.com/en-us/library/bb513617(v=VS.85).aspx