Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.12
-
None
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())
else
{ m_RetarderList->at(j)->setIsPulse(true); }break;
}
}
}
}
}
Thanks