从 Outlook COM 加载项手动触发 Windows 错误报告
我正在使用 Visual Studio 2008 和 VSTO 编写 Outlook COM 加载项。如果加载项中未处理异常,我希望它触发 Windows 错误报告 (WER)。我们公司可以访问 WinQual,以便我们可以从用户那里获取我们程序中发生的 WER 报告。有什么方法可以做到这一点吗?
据我所知,这是不可能的,但想检查一下是否有办法。仅当应用程序生成未处理的异常时才会触发 WER。在 Outlook 中运行的 Outlook 加载项和 Outlook 在对 COM 加载项的调用周围有异常处理程序,以防止 COM 加载项导致 Outlook 崩溃。由于 Outlook 不会崩溃,因此不会触发 WER。
I am writing a Outlook COM Add In using Visual Studio 2008 and VSTO. If an exception goes unhandled in the add in, I would like it to trigger Windows Error Reporting (WER). Our company has access to WinQual so that we can get reports of WER reports from users that occur in our program. Is there some way to do this?
From what I can tell, this isn't possible, but wanted to check to see if there was a way. WER is only triggered when an application generates an unhandled exception. An Outlook Add In run in Outlook and Outlook has exception handlers around the calls to COM Add In to protect against a COM Add In causing Outlook to crash. Since Outlook doesn't crash, WER doesn't get triggered.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 MSDN 论坛:
虽然还没有完全实现,但潜台词似乎是它永远不会发生。
Answer to the same question (possibly by you!) found on MSDN forums:
It doesn't quite get there, but the subtext would appear to be that it'll never happen.