Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Data type ranges
Zain last edited by
I have found the forum very useful and best of all .
My Question is:
Where can I found the list of all data types with there ranges?
I need to do some very big(counting in million) and medium(few thousand) size iterations.
And I want to use suitable datatypes.
I am also keeping the result till the program ends and exporting it to text files as well .. that's why I need to know, IF there is some limitations with derived datatypes likes QstringLists.
Note: I have tried foreach... loop like below:
foreach (tmpStr,strList )
But it gives error 'This application has requested the Runtime to terminate it in a unusual way'.
perhaps beacuse the strList (QstringList) is increasing simultaneously (Used threading).
Then I used for loop.
It also fire the same error.. but after some thousand counts.
So I think my int counter is not working here (Or there may be some other error ?).
Debugger : mingw (4.8.1)
Any suggestion appreciated.
Thanks in advance
MuhamedAuda last edited by
see that: "data stream":http://doc.qt.digia.com/qt/datastreamformat.html
jjoe last edited by
Have a look at "QList Class Reference":http://doc.qt.digia.com/qt/qlist.html
The function count () returns the number of items in the list. This value is an int; if your have more items than the max. value of an int it will not work.
bq. perhaps beacuse the strList (QstringList) is increasing simultaneously
Do you use access serialization between the threads?
issam last edited by
Zain, can you give us more details about the code ?
franku last edited by
bq. perhaps beacuse the strList (QstringList) is increasing simultaneously (Used threading).
Think about race conditions. But we need code if you want a definite answer.