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. [QExtSerialEnumerato][QThread] memory overflow
Forum Updated to NodeBB v4.3 + New Features

[QExtSerialEnumerato][QThread] memory overflow

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 946 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.
  • F Offline
    F Offline
    felipe76
    wrote on last edited by
    #1

    Hi..
    I'm a pretty simple problem to understand.
    I need to query in a loop if any new USB port connected. For this, I was using a loop:
    @
    QList<QextPortInfo> ports = QextSerialEnumerator::getPorts();
    @

    However, the "QextSerialEnumerator :: getPorts ()", when used in a thread consumes memory indefinitely.

    I do not understand why it does not make much sense to me.
    But as I am still inexperienced in QT and C + +, I thought it best to ask the veterans.

    =]

    I wonder if this has the same function be used without consuming memory forever.

    Thanks
    (Sorry for my english)

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Please check out the "forum help for code wrappings.":http://qt-project.org/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 This improves the readability of the code sections in your post. I will add code wrappings this time for you.

      BTW It is Qt. QT stands for Quick Time :-)

      Vote the answer(s) that helped you to solve your issue(s)

      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