从运行在dllhost.exe中的inproc文件生成dmp文件 [英] generating dmp files from an inproc com dll running in dllhost.exe

查看:276
本文介绍了从运行在dllhost.exe中的inproc文件生成dmp文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在写一个在dllhost.exe代理中运行的inproc com dll,但我看到一个调试它的问题。



在我编写的exe文件中,我有一个顶级异常处理程序创建一个.dmp文件我可以加载在windbg然后崩溃,我不知道如何从dllhost这样做。有没有另一种方法来生成堆栈转储从dllhost.exe崩溃?我看到这个页面(http://support.microsoft.com/kb/910904),但它似乎涉及组件服务程序。这是有一些注册表设置吗?



感谢

解决方案

p>而不是具有进程转储本身,您可以设置一个即时调试器在进程崩溃时运行。对于较旧版本的Windows,Dr.Watson是一个很好的可以自动生成崩溃应用程序的转储: http://en.wikipedia.org/wiki/Dr。Watson (调试器)我相信Windows Vista及更高版本已经取代了Dr.Watson与Windows错误报告(< a href =http://support.microsoft.com/kb/931673 =nofollow> http://support.microsoft.com/kb/931673 )

一个更简单的工具是Sysinternals procdump(使用-e选项转储未处理的异常): http://technet.microsoft.com/en-us/sysinternals/dd996900


I am writing an inproc com dll that runs in the dllhost.exe surrogate, but I see an issue debugging it.

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. Is there another way to generate stack dumps from dllhost.exe on a crash? i've seen this page (http://support.microsoft.com/kb/910904), but it seems to involve the component services program. 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.Watson(debugger) I believe Windows Vista and later versions have replaced Dr.Watson with Windows Error Reporting (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

这篇关于从运行在dllhost.exe中的inproc文件生成dmp文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆