我的 dll 由一个模块使用,该模块会肮脏地捕获所有异常并将其记录到文件中。
我的问题是,客户站点存在访问冲突,只能在其计算机上重现,我希望该客户能够针对此问题生成转储文件。
我尝试在我的 dll 中生成 AV 并使用 adplus 生成转储文件,但没有创建转储,因为 AV 被使用我的 dll 的模块捕获。
所以我的问题是:
有没有办法即使在处理异常时也生成故障转储文件?
谢谢,
扬
My dll is used by a module which dirtily catch all exceptions and just log it in to a file.
My issue is that there is an access violation in a customer site which is reproducible only on its computer and I want get able this customer to generate a dump file for this issue.
I tried to generate an AV in my dll and generate a dump file using adplus but no dump where created since the AV is catched by the module which use my dll.
So my question is:
Is there a way to generate crash dump file even on handled exception?
Thanks,
Yann
发布评论
评论(2)
使用 ADPlus,您可以阅读有关配置 ADPlus 的更多信息此处(特定异常的小型转储)
您的配置文件将如下所示:
Use ADPlus, you can read more about configuring ADPlus here (Minidumps for Specific Exceptions)
Your config file will look something like this:
对于 Windows Vista SP1 及更高版本,可以将 Windows 错误报告服务配置为在应用程序崩溃时生成故障转储:
在注册表项下:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
定义值:
这适用于 32 位和 64 位程序。请参阅 http://msdn.microsoft.com/en-us/library/bb787181。 ASPX
For Windows Vista SP1 and later the Windows Error Reporting service can be configured to produce crash dumps whenever an application crashes:
Under the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
Define values:
This works for both 32-bit and 64-bit programs. See http://msdn.microsoft.com/en-us/library/bb787181.aspx