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

Connect() consuming lot of memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12
    • Core: Threads
    • None
    • Windows

    Description

      HI All,
      Good Afternoon.
      Does anybody having solution to this Problem that I am facing in Qt Windows.

      When I am calling below piece of code from my class constructor to flash a widget, its consuming lots of memory. It reaches upto 90MB in 24 hours and aroung 200MB in 48 hours. If I am not calling this piece of code then memory consumption doesnt go beyong 39MB:

      CYardView::CYardView()

      { m_Timer=new QTimer(); m_Timer->setInterval(1200); m_Timer->start(); connect(m_Timer, SIGNAL(timeout()), this, SLOT(FlashSkateObject())); }

      void CYardView::FlashSkateObject()
      {
      QList<QString> IndicatorName = m_IndicatorStateListHandler->FlashingIndicatorList();
      if (IndicatorName.size()>0)
      {
      for(int i=0;i<IndicatorName.size();i++)
      {
      for (int j = 0; j < m_RetarderList->count(); j++)
      {
      if (m_RetarderList->at(j)->GetRetarderName() == IndicatorName.at)
      {
      if(m_RetarderList->at(j)->getIsPulse())

      { m_RetarderList->at(j)->setIsPulse(false); }

      else

      { m_RetarderList->at(j)->setIsPulse(true); }

      break;
      }
      }
      }
      }
      }

      Thanks

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            ndiwan Nitin Diwan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes