Ok, it looks like this code does not crash c::b on you win7 system. (Win7 is robust than WinXP)
What I can suggest is you can write to some other address:
char * p = anyIntValue;
*p = 0;
Then, change anyIntValue until your c::b crashed, or you just do a loop like:
for (int i=0;i<0xfffffffffff;i++)
{
char * p = i;
*p = 0;
}
Actually, your original code is fine and even if I do the
for, when debugging, I get a "segmentation fault" on the first iteration, i.e. with
char *p = 0. The strange thing is that after this "segmentation fault" I can just run again and I come back to the "Start Here" window.
And, again, when not using the debugger, but just running it, I see no exception/crash at all...