简体   繁体   English

从dllhost.exe中运行的inproc com dll生成dmp文件

[英]generating dmp files from an inproc com dll running in dllhost.exe

I am writing an inproc com dll that runs in the dllhost.exe surrogate, but I see an issue debugging it. 我正在编写在dllhost.exe代理中运行的inproc com dll,但调试时出现问题。

in exe's that I've written, I have a top level exception handler that creates a .dmp file i can load in windbg and then crashes, and I'm unsure of how to do this from dllhost. 在我编写的exe文件中,我有一个顶级异常处理程序,该程序创建了一个.dmp文件,可以将其加载到windbg中,然后崩溃,并且我不确定如何从dllhost执行此操作。 Is there another way to generate stack dumps from dllhost.exe on a crash? 是否有另一种方法可以在崩溃时从dllhost.exe生成堆栈转储? i've seen this page (http://support.microsoft.com/kb/910904), but it seems to involve the component services program. 我已经看到此页面(http://support.microsoft.com/kb/910904),但它似乎涉及组件服务程序。 Is there some registry setting for this? 为此有一些注册表设置吗? Because it's something that will be installed on other computers. 因为它将被安装在其他计算机上。

Thanks 谢谢

Rather than having the process dump itself, you can set up a just in time debugger to run when the process crashes. 您可以设置一个及时调试器来在进程崩溃时运行,而不是让进程转储本身。 For older versions of Windows, Dr.Watson is a good one that can automatically generate dumps for crashing applications: http://en.wikipedia.org/wiki/Dr. 对于较旧版本的Windows,Dr.Watson是一个很好的工具,它可以为崩溃的应用程序自动生成转储: http//en.wikipedia.org/wiki/Dr。 Watson (debugger) I believe Windows Vista and later versions have replaced Dr.Watson with Windows Error Reporting ( http://support.microsoft.com/kb/931673 ) 沃森 (调试器)我相信Windows Vista和更高版本已用Windows错误报告( http://support.microsoft.com/kb/931673 )取代了沃森博士。

A simpler tool to use is Sysinternals procdump (use the -e option to dump on unhandled exceptions): http://technet.microsoft.com/en-us/sysinternals/dd996900 使用更简单的工具是Sysinternals procdump(使用-e选项转储未处理的异常): http ://technet.microsoft.com/zh-cn/sysinternals/dd996900

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM