Strange exception phenomenon in Windows 7
Posted
by Level 2
on Stack Overflow
See other posts from Stack Overflow
or by Level 2
Published on 2010-06-17T04:19:26Z
Indexed on
2010/06/17
5:03 UTC
Read the original article
Hit count: 181
I spot some interesting articles about exception handle in CodeProject
http://www.codeproject.com/KB/cpp/seexception.aspx
After reading, I decided to do some experiment.
The first time I try to execute the following code
char *p;
p[0] = 0;
The program died without question.
But
After several times when I executed the same problem binary code, it magically did fine.
Even the following code is doing well. Any clue or explanation?
char *p
p[1000] = 'd';
cout<<p[1000]<<endl;
My O/S is Windows 7 64bit and compiler is VS2008 rc1.
© Stack Overflow or respective owner