Print Page | Close Window

Leak reported in CXTPReportColumns class

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22209
Printed Date: 17 June 2025 at 5:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Leak reported in CXTPReportColumns class
Posted By: rockstar
Subject: Leak reported in CXTPReportColumns class
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net