Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Leak reported in CXTPReportColumns class
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Leak reported in CXTPReportColumns class

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


Joined: 08 May 2010
Location: US
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote rockstar Quote  Post ReplyReply Direct Link To This Post Topic: Leak reported in CXTPReportColumns class
    Posted: 18 February 2014 at 3:04am
In my application using XTP, there is a memory leak reported in the following function of XTP library source:

CXTPReportColumns::CXTPReportColumns(CXTPReportControl* pControl)
    : m_pControl(pControl)
{
    m_pGroupsOrder = new CXTPReportColumnOrder(this);
    m_pSortOrder = new CXTPReportColumnOrder(this);

    m_pTreeColumn = NULL;

}

I would like to know is it fine not deleting those variables, and can I ignore the leak report by VS 2008?
Is the InternalRelese() method called in the destructor alone is enough?:
CXTPReportColumns::~CXTPReportColumns()
{
    Clear();

    if (m_pGroupsOrder)
        m_pGroupsOrder->InternalRelease();
    if (m_pSortOrder)
        m_pSortOrder->InternalRelease();
}

Also leaks reported in following places:
CXTPReportRecordItemEditOptions::CXTPReportRecordItemEditOptions()
{
...
    m_pConstraints = new CXTPReportRecordItemConstraints();
...
}
void CXTPReportColumn::_initData(.....
{
...
    m_pEditOptions = new CXTPReportRecordItemEditOptions();
...
}

I am using the XTP version 15.0.2.

Thanks & Regards

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.297 seconds.