Handling (or not)Unhandled Exception C0000005
Posted on 1998-10-14
Here is my situation: I wrote this program that runs simultaneously 192 threads all the time (doing all kinds of stuff).
Here us the problem: About once a day I get a dialog box that says: "the instruction at 0x00408b59 referenced memory at 0x0045a514 . The memory could not be read. Click OK to terminate the application or click CANCEL to debug. (by the way the addresses usually change...)
Of course the first thing that I did was to go into the debugger and see if I could see anything in there... But it was just a bunch of assembler... And of course that didnt even begin telling me what to look for on my source code.... (ie. possible errors, missuses, etc) (If at least I knew what part of the program was generating the exception I could fix IT!!)
My question is this: what would happen if I dissable the Exception handler on the project settings? (under [project], settings, C/C++, C++ Language)
Would the program crash?
(I would like the program to terminate cleanly WITHOUT message boxes or things like that) so I can have another program just re-start it.
Any and all help will be appreciated.