Reputation: 225
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
Upvotes: 0
Views: 1535
Reputation: 3307
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
Upvotes: 1
Reputation: 31928
Use ADPlus, you can read more about configuring ADPlus here (Minidumps for Specific Exceptions)
Your config file will look something like this:
<ADPlus>
<Settings>
<RunMode>CRASH</RunMode>
<Option>Quiet</Option>
</Settings>
<Exceptions>
<Config>
<Code>AllExceptions</Code>
<Actions1>FullDump</Actions1>
</Config>
</Exceptions>
</ADPlus>
Upvotes: 2