Possible Duplicate:
Exceptions silently caught by Windows, how to handle manually?
I have a small MFC Dialog application and, to my surprise, accessing a NULL pointer was not causing the application to crash! Instead, the application runs normally and only shows a message in the Debug Output window:
First-chance exception at 0x006bef51 in SketchTester.exe: 0xC0000005: Access violation writing location 0x00000000.
When I say "accessing a NULL pointer" I'm refering to something like this:
int * ip = NULL;
(*ip) = 1;
I was expecting that it would show a message box with something like "Unhandled exception at..." (and a Break button to debug it at the problematic code line), as it normaly does in debug, or that it just crashes the application when on release mode. But no, the application just stays there looking good :O
Is this inteded behavior? MFC specific? If so, how can I "turn it off"?
By the way, I'm using Visual Studio 2010.