Home » Community » Newbie corner » Fatal error kills app in try/catch - - Why?
Fatal error kills app in try/catch - - Why? [message #30238] |
Sat, 18 December 2010 09:32 |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
Fatal error
Assertion failed in c"\upp\uppsrc\core\Vcont.h,line 33
i>=0 && i<items
MS kills the app.
I know where the problem is:
try{
Vector<String> vBL = Split(BLoc, ',');
ln = vBL[0] + "," + vBL[1];// post error to forum
ln = parseLatLon(BLoc);
If a user inputs data that is space rather than comma delimited then vBL[1] is null.
In Util.cpp:
__BREAK__;
abort();
In Vcont.h:
T& Get(int i) const { ASSERT(i >= 0 && i < items); return vector[i]; }
The parseLatLon(BLoc); code is also in a try/catch block.
The question I have is since this is in two try/catch blocks WHY is the error not caught rather than have MS kill the app??
Neil
[Updated on: Sat, 18 December 2010 09:44] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Jun 05 19:54:46 CEST 2024
Total time taken to generate the page: 0.02976 seconds
|