Hi, i'm using RealView compiler C++. With the following example generating an exception with a fixed string (throw "Out of range";) always generate a general exception, but generating an exception with throw BUF; works correctly.
try { char *BUF = "Hallo"; throw "Out of range"; // <<<<<<<< generates only general exception //throw BUF; // <<<<<<<<<<<<< Works correctly TRACE(("\n\rThis will never execute")) } catch (int i) { TRACE(("\n\rCATCH Integer:%d", i)) } catch (char * str1) { TRACE(("\n\rCATCH String:%s", str1)) } catch (...) { // catch all Exceptions TRACE(("\n\rCATCH one!")) }
Any suggestion?
Thanks Eugen