Data type ranges
-
Hello experts,
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
Zain
-
see that: "data stream":http://doc.qt.digia.com/qt/datastreamformat.html
-
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?
-
Zain, can you give us more details about the code ?
-
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.