是否有 .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/