Important: Please read the Qt Code of Conduct -

[QExtSerialEnumerato][QThread] memory overflow

  • 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.

    (Sorry for my english)

  • welcome to devnet

    Please check out the "forum help for code wrappings.": 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 :-)

Log in to reply