Here is a snippet of the code that creates a run time error "Microsoft Visual C++ Runtime Library" http://www.flickr.com/photos/66130188@N07/6023459646/
string text = something;
size_t index = text.find("hoopla");
try{
if(text.at(index-1)<'0'&&text.at(index-1)>'9')
return false;
}catch(out_of_range){return true;}
I am running it in Qt creator. It is not triggering the catch block. When the program reaching the text.at(index-1) and index-1 is out of bounds, it creates the run time error in Qt http://www.flickr.com/photos/66130188@N07/6023453724/
I did not have a problem when I used MVS2010. Any suggestions?