Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83606

QModbusTCPClient Problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.14.0
    • SerialBus: MOD Bus
    • None
    • VS2017 on Windows,gcc on Unbuntu
    • Linux/Other display system, Windows

      I start a new modbus tcp connection in a QThread. I keep the connection all the time, and I found the memory in the heap of QModbusTcpClientPrivate::equeueRequest is group up soon.

      I follow the souce code,then I found the "new" place is  <<q->connect(q, &QModbusClient::timeoutChanged,
      element.timer.data(), QOverload<int>::of(&QTimer::setInterval));>>.

      connect funcion new slotObj one by one。 

      how can I do to deal with the problem?

      Thanks for replying my question.

      The Example code is upload now

        1. 1.PNG
          1.PNG
          15 kB
        2. 2.PNG
          2.PNG
          20 kB
        3. 3.PNG
          3.PNG
          42 kB
        4. MBTcpClientTest.zip
          3 kB
        5. mbtcpmaster.zip
          95 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ablasche Alex Blasche
            yuntong tong yun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes