If I run the .exe of a program I made it gives the usual message box "program x has encountered a problem ... "
However, when I run VC++.NET debugger to find out what's wrong, it just works! And then, when I close the program I get
and the debugger breaks to free.cCode:"Unhandled exception at 0x77f7f570 in x.exe: User breakpoint."
I guess I'm doing something that causes access violation, which is, for some reason, isn't detected by the debugger, and then when I shut down, some destructor calling delete causes the above error message.
1. is the above error message really caused by deleting some memory not allocated by new (or free)?
2. Why isn't the first error message detected by the debugger?
3. how am I supposed to debug this if the debugger doesn't detect it (is there a better way to do debugging)?
thanks in advance.