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. QT5 application code size or data memory size limit?
Qt 6.11 is out! See what's new in the release blog

QT5 application code size or data memory size limit?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 775 Views 2 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.
  • O Offline
    O Offline
    o6a6r9v1p
    wrote on last edited by
    #1

    Hi,
    we have developed QT GUI for USB-CDC application, to interact with a target board.
    That was working fine.
    Now we need some more data from target board. when we added code for it, there is no communication thru USB in QT GUI (it does not respond).
    when we commented out the extra code that has been added, it works as usual.
    We declared one extra variable, it is compiling, but not working.
    when we remove that declaration, it was working fine.

    Is there any limit on code size in QT4.6.0-rc1?

    or is there any other point, that we have to look at.

    Thanks.

    JKSHJ 1 Reply Last reply
    0
    • O o6a6r9v1p

      Hi,
      we have developed QT GUI for USB-CDC application, to interact with a target board.
      That was working fine.
      Now we need some more data from target board. when we added code for it, there is no communication thru USB in QT GUI (it does not respond).
      when we commented out the extra code that has been added, it works as usual.
      We declared one extra variable, it is compiling, but not working.
      when we remove that declaration, it was working fine.

      Is there any limit on code size in QT4.6.0-rc1?

      or is there any other point, that we have to look at.

      Thanks.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @o6a6r9v1p said in QT5 application code size or data memory size limit?:

      Is there any limit on code size

      Not really. How big is your compiled application?

      We declared one extra variable, it is compiling, but not working.
      when we remove that declaration, it was working fine.

      "Not working" in what way? Please provide details, and please tell us how you tried to debug the app.

      QT4.6.0-rc1

      The RC versions are not proper releases. I suggest you upgrade to the latest released version.

      Also, Qt Creator is not the same as Qt.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      O 1 Reply Last reply
      3
      • JKSHJ JKSH

        @o6a6r9v1p said in QT5 application code size or data memory size limit?:

        Is there any limit on code size

        Not really. How big is your compiled application?

        We declared one extra variable, it is compiling, but not working.
        when we remove that declaration, it was working fine.

        "Not working" in what way? Please provide details, and please tell us how you tried to debug the app.

        QT4.6.0-rc1

        The RC versions are not proper releases. I suggest you upgrade to the latest released version.

        Also, Qt Creator is not the same as Qt.

        O Offline
        O Offline
        o6a6r9v1p
        wrote on last edited by
        #3

        @JKSH
        thank you,

        1. it is not very big, around 1.8MB.

        2. when i declared a variable additionally, USB stops responding.
          when that variable is commented, compiled, it works fine, and works correctly.

        3. i didnot debug this because it is addition of one line code, and because earlier code was working fine.

        mrjjM JKSHJ 2 Replies Last reply
        0
        • O o6a6r9v1p

          @JKSH
          thank you,

          1. it is not very big, around 1.8MB.

          2. when i declared a variable additionally, USB stops responding.
            when that variable is commented, compiled, it works fine, and works correctly.

          3. i didnot debug this because it is addition of one line code, and because earlier code was working fine.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @o6a6r9v1p
          Hi,
          Its sounds pretty odd.
          what kind of variable ? an array or ?

          1 Reply Last reply
          0
          • O o6a6r9v1p

            @JKSH
            thank you,

            1. it is not very big, around 1.8MB.

            2. when i declared a variable additionally, USB stops responding.
              when that variable is commented, compiled, it works fine, and works correctly.

            3. i didnot debug this because it is addition of one line code, and because earlier code was working fine.

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            @o6a6r9v1p said in QT5 application code size or data memory size limit?:

            1. it is not very big, around 1.8MB.

            The size is definitely not a problem.

            1. when i declared a variable additionally, USB stops responding.

            And what about the rest of your app? Do other parts still work?

             when that variable is commented, compiled, it works fine, and works correctly.
            

            Give us more details about the variable.

            1. i didnot debug this because it is addition of one line code, and because earlier code was working fine.

            You should debug it because your code stops working.

            This is my guess: That new variable isn't the root cause of your problem. There was an existing, hidden problem in your code before, but you didn't notice it before because it didn't stop your USB comms. After you added the variable, your app's memory layout or timings changed a tiny bit, and that was enough to cause the existing, hidden problem to become noticeable.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            3

            • Login

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