C++

Catching an access violation exception

Author: Embarcadero USA Question and Answer Database FAQ1750C.txt Catching an access violation exception Category :C/C++ Language Issues Platform :All Product :BC++ 5.x Question: Why does my attempt at catching an access violation fail? main() { char *ptr; ptr=NULL; try { *ptr=5; } catch(...) { cerr << "Caught exception" <"throw" somewhere for you to…
Read more