[RESOLVED] Catching when an application closes/crashes..in release mode.
I have an app that will run for a variable amount of time and then...disappear.
Usually, when this application crashes (it does happen), I'll get a "Windows has encountered an error and needs to close..." window. I'm also catching issues in debug mode, but I also need to test in release.
Is there a way to intercept and log this disappearing act? I'm thinking of writing to a log file on this event when the app "disappears" but I haven't yet determined what function, exactly, I should look for.
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.