Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Data type ranges
Forum Updated to NodeBB v4.3 + New Features

Data type ranges

Scheduled Pinned Locked Moved General and Desktop
5 Posts 5 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zain
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuhamedAuda
      wrote on last edited by
      #2

      see that: "data stream":http://doc.qt.digia.com/qt/datastreamformat.html

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jjoe
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • I Offline
          I Offline
          issam
          wrote on last edited by
          #4

          Zain, can you give us more details about the code ?

          http://www.iissam.com/

          1 Reply Last reply
          0
          • F Offline
            F Offline
            franku
            wrote on last edited by
            #5

            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.

            This, Jen, is the internet.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved