是否有Windows错误报告的一个.NET API错误报告、Windows、API、NET

2023-09-03 11:12:15 作者:醉梦人生

有没有适合我,整合 Windows错误报告到我的应用程序中的.NET API?

我最感兴趣的是启动错误报告,甚至在我的应用程序中发生非灾难性的错误和所有我能找到是的 WIN32 API 。

解决方案

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

开发只需要登记,使他们能够得到他们的产品的崩溃信息。

从 http://msdn.microsoft.com/ EN-US /库/ bb513641(VS.85)的.aspx

       

开发人员可以使用Windows质量在线服务登记,以获得有关客户正在经历与其应用程序的问题的信息,并帮助客户解决这些问题。开发人员还可以使用应用程序恢复和重新启动,以确保客户不会在他们的应用程序崩溃会导致数据丢失,并让用户能够快速返回到他们的任务。

  

我敢肯定,你可以使用互操作调用WER的API,如果你想生成报告没有崩溃。

Is there a .Net API for me to integrate Windows Error Reporting into my application?

怎么用windows api写一段代码实现打开文件对话框

I'm mostly interested in initiating error reports even for non-catastrophic errors occurring in my application and all I could find is the WIN32 API.

解决方案

It's not likely. WER isn't meant to be used by applications, its something that a user can choose to enable, and when (s)he does, all application crashes are turned into Windows Error Reports and sent to a central server. It's not something you turn on and off for individual applications. You generate an error report by crashing on a machine where the user has enabled WER.

Developers just have to register so that they can get the crash information on their products.

from 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.

I'm sure you could use interop to call the WER api's, if you want to generate a report without crashing.