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

QModbusTCPClient Problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Component/s: SerialBus: MOD Bus
    • Labels:
      None
    • Environment:
      VS2017 on Windows,gcc on Unbuntu
    • Platform/s:
      Linux/Other display system, Windows

      Description

      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

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes