Application crashes even when using a try..catch block

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?

Answers


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.


Need Your Help

How to prevent node related errors during initialize of a React Native app

ios reactjs react-native

I removed my node installation via brew and followed the steps on the React getting started page to install iojs. Before I updated npm via brew also. React Native installs properly, but as soon as ...

Php form fails to commit information to phpMyAdmin

php mysql

I inherited this messy code from the student in my job before me. I believe it can be written in a more efficient and easier way but I'm not sure how to go about cleaning it up. My hope is that by