<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Leak reported in CXTPReportColumns class</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Leak reported in CXTPReportColumns class]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 08 Jun 2026 19:49:24 +0000</pubDate>
  <lastBuildDate>Tue, 18 Feb 2014 03:04:40 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=22209</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Leak reported in CXTPReportColumns class : In my application using XTP, there...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22209&amp;PID=72269&amp;title=leak-reported-in-cxtpreportcolumns-class#72269</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6094">rockstar</a><br /><strong>Subject:</strong> 22209<br /><strong>Posted:</strong> 18 February 2014 at 3:04am<br /><br />In my application using XTP, there is a memory leak reported in the following function of XTP library source:<br><br>CXTPReportColumns::CXTPReportColumns(CXTPReportControl* pControl)<br>&nbsp;&nbsp;&nbsp; : m_pControl(pControl)<br>{<br>&nbsp;&nbsp;&nbsp; m_pGroupsOrder = new CXTPReportColumnOrder(this);<br>&nbsp;&nbsp;&nbsp; m_pSortOrder = new CXTPReportColumnOrder(this);<br><br>&nbsp;&nbsp;&nbsp; m_pTreeColumn = NULL;<br><br>}<br><br>I would like to know is it fine not deleting those variables, and can I ignore the leak report by VS 2008?<br>Is the InternalRelese() method called in the destructor alone is enough?:<br>CXTPReportColumns::~CXTPReportColumns()<br>{<br>&nbsp;&nbsp;&nbsp; Clear();<br><br>&nbsp;&nbsp;&nbsp; if (m_pGroupsOrder)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pGroupsOrder-&gt;InternalRelease();<br>&nbsp;&nbsp;&nbsp; if (m_pSortOrder)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pSortOrder-&gt;InternalRelease();<br>}<br><br>Also leaks reported in following places:<br>CXTPReportRecordItemEditOptions::CXTPReportRecordItemEditOptions()<br>{<br>...<br>&nbsp;&nbsp;&nbsp; m_pConstraints = new CXTPReportRecordItemConstraints();<br>...<br>}<br>void CXTPReportColumn::_initData(.....<br>{<br>...<br>&nbsp;&nbsp;&nbsp; m_pEditOptions = new CXTPReportRecordItemEditOptions();<br>...<br>}<br><br>I am using the XTP version 15.0.2.<br><br>Thanks &amp; Regards<br><br>]]>
   </description>
   <pubDate>Tue, 18 Feb 2014 03:04:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22209&amp;PID=72269&amp;title=leak-reported-in-cxtpreportcolumns-class#72269</guid>
  </item> 
 </channel>
</rss>