PDA

View Full Version : Handling "index out of range"



liqxpil
28th December 2010, 22:25
hi all

Is there a way to catch this exception (assuming i cant prevent it for some reason)


QList<T>::operator[]: "index out of range"

is it possible to handle it using a catch statment?

squidge
28th December 2010, 23:25
It's not an exception, it's diagnostic data and only performed in debug mode. Build your app for release, and the check isn't performed (your app will probably just crash instead).