Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[QExtSerialEnumerato][QThread] memory overflow
felipe76 last edited by
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)
koahnig last edited by
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 :-)