I have a very simple C++ code here:
char *s = new char[100];
strcpy(s, \"HELLO\");
delete [] s;
int n = strlen(s);
If I run this code from
The executable with debug symbols is able to detect some cases of access violations. The code to detect this is contained in the executable, but will not be triggered by default.
Here you'll find an explanation of how you can control behaviour outside of a debugger: http://msdn.microsoft.com/en-us/library/w500y392%28v=VS.80%29.aspx