I have an application in C++ and C# (both of them in the same project). In some scenario (not reproducible every time) the application crashes and I can’t see any reason to this crash.
I added a try..catch block to every place that can cause the crash – I even added a try..catch to the ‘Program.cs’ code that should catch the exception – and nothing helps.
How can I find the problem? Where should I start?
Use procdump with the -ma, -e, -t options. When the app crashes, it should generate a dump file. Open it in your favorite debugger (VS2010 or WinDbg). Then check the call stack for clues.