.net - 是否有用于 Windows 错误报告的 .Net API

标签 .net windows windows-error-reporting

是否有 .Net API 供我集成 Windows Error Reporting进入我的应用程序?

我最感兴趣的是启动错误报告,即使是在我的应用程序中发生的非灾难性错误也是如此,我所能找到的就是 WIN32 API .

最佳答案

这不太可能。 WER 并不意味着被应用程序使用,它是用户可以选择启用的东西,当他(她)启用时,所有应用程序崩溃都会变成 Windows 错误报告并发送到中央服务器。这不是您为单个应用程序打开和关闭的东西。您在用户已启用 WER 的机器上崩溃生成错误报告。

开发者只需要注册就可以得到他们产品的崩溃信息。

来自 http://msdn.microsoft.com/en-us/library/bb513641(VS.85).aspx

Developers can register with Windows Quality Online Services to get information about the problems customers are experiencing with their applications and help customers fix these problems. Developers can also use Application Recovery and Restart to ensure that customers do not lose data when their application crashes and allow users to quickly return to their tasks.

如果您想在不崩溃的情况下生成报告,我相信您可以使用互操作来调用 WER api。

关于.net - 是否有用于 Windows 错误报告的 .Net API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2082659/

相关文章:

.net - 从窗口句柄获取窗口 z 索引

c# - 异常后如何继续执行?

javascript - '.'不被识别为在 exec() 中使用时抛出的内部或外部命令,但从命令行运行时则不会

程序运行时出现 C++ STATUS_ACCESS_VIOLATION 错误

.net - Windows 错误报告有时不会为 .NET 4 应用程序生成小型转储

c# - 在缓存应用程序 block 中配置缓存管理器过期时间

c# - C# 中 Cmd 命令中的 FFmpeg 完成后的事件

windows - Win32 : How to crash?

python - RobuSTLy 杀死 Windows 程序卡住报告 'problems'

c# - SerialPort.Write 方法挂起,超时未在 C# 中触发