Using large data structure for storage!
-
@jsulm
1)the error is "This application has requested runtime to terminate it in an unusual way!"
2)I will give part of a code-
QList<QStringList> sample;QStringList List;
List="Testing";
for(int i=0;i<number;i++){
sample<<List;
}Here number refers to the value entered through line edit(i.e 100 in my scenario)
-
@Kushan This code isn't going to compile as "List="Testing";" is invalid.
Would be nice if you would post part of your real code or at least a sample code which you tested and verified that it is crashing.
Did you try to debug your app to see where exactly it is crashing? This is first thing to do in such a situation. -
-
@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. -