Search code examples
windowsdebuggingcrash-dumps

How to get crash dump on Handled Exception?


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


Solution

  • 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>