Strange exception phenomenon in Windows 7
- by Level 2
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.