<?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 : ReleaseItem error</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : ReleaseItem error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 12:50:45 +0000</pubDate>
  <lastBuildDate>Tue, 03 Feb 2009 00:38:15 +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=13324</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[ReleaseItem error : prev code:  void CXTPReportControl::ReleaseItem(int...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13324&amp;PID=45102&amp;title=releaseitem-error#45102</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2624">yayo</a><br /><strong>Subject:</strong> 13324<br /><strong>Posted:</strong> 03 February 2009 at 12:38am<br /><br /><DIV>prev code:</DIV><DIV>&nbsp;</DIV><DIV>void CXTPReportControl::ReleaseItem(int nIndex)<BR>{<BR>&nbsp;&nbsp;&nbsp; int i;</DIV><P>&nbsp;&nbsp; for (i = 0; i &lt; m_pRecords-&gt;GetCount(); i++)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportRecord* pRecord = m_pRecords-&gt;GetAt(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRecord-&gt;m_arrItems&#091;nIndex&#093;-&gt;InternalRelease();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pRecord-&gt;m_arrItems.RemoveAt(nIndex);<BR>&nbsp;&nbsp; }</P><P>&nbsp;modified code :</P><DIV>void CXTPReportControl::ReleaseItem(int nIndex)<BR>{<BR>&nbsp;&nbsp;&nbsp; int i;</DIV><DIV>&nbsp;&nbsp; &nbsp;for (i = 0; i &lt; m_pRecords-&gt;GetCount(); i++)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportRecord* pRecord = m_pRecords-&gt;GetAt(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;//yayo<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;pRecord-&gt;ReleaseItem(nIndex);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //pRecord-&gt;m_arrItems&#091;nIndex&#093;-&gt;InternalRelease();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //pRecord-&gt;m_arrItems.RemoveAt(nIndex);<BR>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp;</DIV><DIV>add code : </DIV><DIV>&nbsp;</DIV><DIV>XTPReportRecord.h</DIV><DIV>void ReleaseItem(int nIndex);</DIV><DIV>&nbsp;</DIV><DIV>XTPReportRecord.cpp</DIV><DIV>// yayo<BR>void CXTPReportRecord::ReleaseItem(int nIndex)<BR>{<BR>&nbsp;for(int j=0; j&lt;GetChilds()-&gt;GetCount(); j++)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPReportRecord* pChildRecord = GetChilds()-&gt;GetAt(j);</DIV><DIV>&nbsp;&nbsp;pChildRecord-&gt;ReleaseItem(nIndex);<BR>&nbsp;}</DIV><DIV>&nbsp;m_arrItems&#091;nIndex&#093;-&gt;InternalRelease();<BR>&nbsp;m_arrItems.RemoveAt(nIndex);<BR>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 03 Feb 2009 00:38:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13324&amp;PID=45102&amp;title=releaseitem-error#45102</guid>
  </item> 
 </channel>
</rss>