Unsolved Runtime Error what to do?
-
Hi, i have got the following problem ASSERT: "i >= 0" in file ........\5.3\mingw482_32\include/QtCore/qstring.h, line 1023 in my qt program do you have any ideas how to resolve it thanks
-
Hi
You most likely does something likeQString str;
str[X]
where X is bigger than string is or string is empty.Use the debugger to spot the location.
-
@mrjj said in Runtime Error what to do?:
Hi
You most likely does something likeQString str;
str[X]
where X is bigger than string is or string is empty.You're right, the index is out of bounds. but from the assert I guess that X is smaller than zero (X<0) :)
EDIT: X may be used uninitialized
-
@aha_1980
Yeah, good catch , it seems to say assert for >=0 fail so
it most likely negative index.