Original Post
My app has a bug *somewhere* and im trying to find out the source of the problem. The app crashes and gives a protection error (or something similar) and displays a small dialog with a close button.
I have implemented a debugging output system where my app writes to a text file when it runs certain functions, but since the app crashes without closing, it doesnt close my debug file, so i cannot find the source of the problem.
(I am not using the Developer studio, just the command line).
Is there a way to catch a protection fault in my app instead of the app causing an error and forcing it to close?