How to create minidump of a .NET process when a certain first chance exception occurs.
Posted
by mark
on Stack Overflow
See other posts from Stack Overflow
or by mark
Published on 2010-06-09T11:03:19Z
Indexed on
2010/06/09
11:32 UTC
Read the original article
Hit count: 418
Dear ladies and sirs.
My application throws InvalidCastException in the QA environment, something I cannot reproduce in development.
I wish to obtain the minidump at the exception moment. I know about adplus, but I am not sure how to use it so that it creates the minidump when InvalidCastException is thrown. Apparently, it does not distinguish one .NET exception from another. May be I am wrong and there is a way. Or, there is another tool to do it. Preferably free one.
Anyway, can anyone advice how to handle this issue?
Thanks.
UPDATE
- The build is a Debug build in both QA and dev. However, QA runs complex scenarios made possible in the lab, which devs cannot reproduce. Hence I need an ability to make dump when running in QA.
- I can modify the code and create minidump from code. However, I wish for a more flexible solution, the one not requiring to modify the code every time an issue like this occurs.
© Stack Overflow or respective owner