调试 MMC(非托管 c++)?

发布于 2024-08-05 22:27:36 字数 165 浏览 3 评论 0原文

我正在开发一个旧版 MMC 应用程序,我注意到的一件事是,关闭 MMC 时偶尔会报告错误。

“MMC 检测到管理单元中存在错误。建议您关闭并重新启动 MMC”。

我该如何调试这个?在关闭控制台之前,该错误不会显示,如果您尝试附加调试器,它会立即退出。

有什么想法吗?

I work on a legacy MMC application and one thing I have noticed is that once in awhile when closing the MMC, an error will be reported.

"MMC has detected an error in a snap-in. It is recommended that you shut down and restart MMC".

How can I debug this? The error is not displayd until you close the console and if you try to attach a debugger, it just exits instantly.

Any thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北风几吹夏 2024-08-12 22:27:37

为什么不在调试器下运行 MMC?显然,管理单元的关闭代码有问题(可能是未处理的异常)。

只需在您最喜欢的调试器下运行 mmc.exe 并告诉调试器在出现所有异常时停止。连接你的管理单元出口并等待崩溃。


您可以尝试运行 ProcDump 它可以在未处理的异常上创建转储文件。

Why not run the MMC under debugger? Clearly there is something wrong (Unhandled exception probably) with the shutdown code of the snapin.

Just run mmc.exe under your favorite debugger and tell the debugger to stop on all exception. attach your snapin exit and wait for the crash.


You can try to run ProcDump which can create dump files on Unhandled exception.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文