Using large data structure for storage!
-
@Kushan I tested this code: it does not crash (and I don't see why it should).
As I said you should first debug to see where it actually crashes.
And you still did not say how big your strings are. If they are huge then maybe your app gets out of memory and is terminated by the OS. -
@Kushan That's not long.
Please debug you app to see where it is crashing. I'm out of ideas as the code you posted doesn't crash and there is not enough information to tell you why your app is crashing. -
-
-
@jsulm Actually the error is indexout of bound but I havent declared any size anywhere in my code for all the structures I have used!
-
@Kushan Are you accessing list elements using [] anywhere in your code like
QList<QString> list; qDebug() <<list[0];
?
-
@Kushan Are you accessing list elements using [] anywhere in your code like
QList<QString> list; qDebug() <<list[0];
?