<?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 : [SOLVED] Collapsing Group Programmatically Crashes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [SOLVED] Collapsing Group Programmatically Crashes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:30:25 +0000</pubDate>
  <lastBuildDate>Thu, 23 Apr 2015 07:02:34 +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=22510</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[[SOLVED] Collapsing Group Programmatically Crashes :  fixed in revision 16822 (January...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22510&amp;PID=73330&amp;title=solved-collapsing-group-programmatically-crashes#73330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22510<br /><strong>Posted:</strong> 23 April 2015 at 7:02am<br /><br />fixed in revision 16822 &nbsp;(January 20, 2015) due to support ticket 33444&nbsp; "Report Control - Expand property" (crash in ActiveX on multilevel nesting rows).<br><br>in file XTPReportSection.cpp<br><table width="99%"><tr><td><pre class="BBcode">int CXTPReportSection::_DoCollapse(CXTPReportRow *pRow)<br>{<br>	int nIndex = pRow-&gt;GetIndex() + 1;<br>	if (nIndex == 0)	// pRow-&gt;GetIndex() == -1<br>		return 0;		// pRow already collapsed<br>...<br>}<br>...<br>void CXTPReportSection::RefreshIndexes(int nIndexStart)<br>{<br>	int nRowCount = m_pRows-&gt;GetCount();<br>	nIndexStart = nIndexStart &lt; 0 ? 0 : nIndexStart;<br>...<br>}<br>&nbsp;</pre></td></tr></table>&nbsp;]]>
   </description>
   <pubDate>Thu, 23 Apr 2015 07:02:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22510&amp;PID=73330&amp;title=solved-collapsing-group-programmatically-crashes#73330</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Collapsing Group Programmatically Crashes : Are there any known issues with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22510&amp;PID=73040&amp;title=solved-collapsing-group-programmatically-crashes#73040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8791">Peter Bragg</a><br /><strong>Subject:</strong> 22510<br /><strong>Posted:</strong> 14 January 2015 at 11:34am<br /><br />Are there any known issues with the Com ActiveX ReportControl version 16.3.1 and programmatically collapsing groups? Or rather, groups with Records that themselves have children?<div><br></div><div>I am using v16.3.1 with DataFlex and the control keeps causing my application to crash. The following is test code but demonstrates the problem:</div><div><br></div><div><div>Procedure OnClick</div><div>&nbsp; &nbsp; Variant vRow</div><div>&nbsp; &nbsp; Handle &nbsp;hoRow hoGroup</div><div>&nbsp; &nbsp; Boolean bIsGroup bExpanded</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Get ComFocusedRow of oReportControl to vRow</div><div>&nbsp; &nbsp; Get Create (RefClass(cCJReportRow)) to hoRow</div><div>&nbsp; &nbsp; Set pvComObject of hoRow to vRow</div><div>&nbsp; &nbsp; Get ComGroupRow of hoRow to bIsGroup</div><div>&nbsp; &nbsp; If (bIsGroup) Begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Get Create (RefClass(cCJReportGroupRow)) to hoGroup</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Set pvComObject of hoGroup to vRow</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Get ComExpanded of hoGroup to bExpanded</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Set ComExpanded of hoGroup to (not(bExpanded))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Send Destroy of hoGroup</div><div>&nbsp; &nbsp; End</div><div>&nbsp; &nbsp; Send Destroy of hoRow</div><div>End_Procedure</div></div><div><br></div><div>(This is test code by the way, so I know that the FocusedRow will always return a value)</div><div><br></div><div>The test code simply expands or collapses a group row, depending on its current state (if collapsed it will expand it and vice versa)</div><div><br></div><div>So, if the group row is collapsed, no problem, it gets expanded. If it is expanded though it then depends on the rows. If the rows have no child rows then the group collapses with no issues. But if just one of the rows within the group has child rows of its own (the first column has the TreeColumn property set to True) then the application crashes.</div><div><br></div><div>I can see from the release notes for 16.2.5 for the ReportControl that one of the fixes was "Fixed crash when manually expanding/collapsing a row via code" - which is what caused me to wonder if there was still an issue in this area?</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 14 Jan 2015 11:34:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22510&amp;PID=73040&amp;title=solved-collapsing-group-programmatically-crashes#73040</guid>
  </item> 
 </channel>
</rss>