Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [CLOSED] Big memory leak in CXtpReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closed[CLOSED] Big memory leak in CXtpReportControl

 Post Reply Post Reply
Author
Message
xtpuser View Drop Down
Newbie
Newbie


Joined: 02 May 2010
Status: Offline
Points: 7
Direct Link To This Post Topic: [CLOSED] Big memory leak in CXtpReportControl
    Posted: 20 May 2010 at 12:00pm
I am developing an application with XTreme Toolkitpro 2008 12.0.2,vs2005,XP SP3,here is the sample code:

class CMyMessageRecordItemText : public CXTPReportRecordItem
{
public:
     CMyMessageRecordItemText(COLORREF rgb,LPCTSTR szText);
};


CMyMessageRecordItemText::CMyMessageRecordItemText(COLORREF rgb,LPCTSTR szText)
{
     m_bFocusable=TRUE;
     m_clrBackground=rgb;
     m_strCaption=szText;
}


CXTPReportRecord *pRecord;
pRecord=new CXTPReportRecord();
pRecord->AddItem(new CMyMessageRecordItemIcon(Action));
pRecord->AddItem(new CMessageRecordItemText(RGB(255,255,255),CString);
pRecord->AddItem(new CMessageRecordItemText(RGB(255,255,255),CString);
pRecord->AddItem(new CMessageRecordItemText(RGB(255,255,255),CString);
pRecord->AddItem(new CMessageRecordItemText(RGB(255,255,255),CString);
pRecord->AddItem(new CMessageRecordItemText(RGB(255,255,255),CString);
m_ReportCtrl.AddRecord(pRecord);
m_ReportCtrl.Populate();

On startup mem usage is 13MB. After add 1000+ records my app fired up to 160MB memory usage........

memory not released until program ends,Pls tell me the solution asap,thanks!!!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.107 seconds.