<?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 : Crash in Report Control in 10.4</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Crash in Report Control in 10.4]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 17:25:01 +0000</pubDate>
  <lastBuildDate>Tue, 09 Jan 2007 06:33:09 +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=6031</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[Crash in Report Control in 10.4 : Sorry i hadnt spotted the report,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=19047&amp;title=crash-in-report-control-in-10-4#19047</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 6031<br /><strong>Posted:</strong> 09 January 2007 at 6:33am<br /><br />Sorry i hadnt spotted the report, thanks.]]>
   </description>
   <pubDate>Tue, 09 Jan 2007 06:33:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=19047&amp;title=crash-in-report-control-in-10-4#19047</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in Report Control in 10.4 : Hi,This is a known bug. Will be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=19012&amp;title=crash-in-report-control-in-10-4#19012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6031<br /><strong>Posted:</strong> 08 January 2007 at 4:04pm<br /><br />Hi,<br><br>This is a known bug. Will be fixed for the nearest release.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 16:04:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=19012&amp;title=crash-in-report-control-in-10-4#19012</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in Report Control in 10.4 : In the end I have overridden OnClick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=19007&amp;title=crash-in-report-control-in-10-4#19007</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 6031<br /><strong>Posted:</strong> 08 January 2007 at 8:45am<br /><br />In the end I have overridden OnClick and OnDblClick in my overriden CXTPReportRecordItemPreview class and commented out the line:<DIV><strong>pClickArgs-&gt;pColumn-&gt;InternalAddRef();</strong></DIV><DIV>&nbsp;</DIV><DIV>So now it works okay without a crash, but I think it would be good to get this fixed in the next release please.</DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 08:45:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=19007&amp;title=crash-in-report-control-in-10-4#19007</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in Report Control in 10.4 : I cant think of a way to work...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=18999&amp;title=crash-in-report-control-in-10-4#18999</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 6031<br /><strong>Posted:</strong> 08 January 2007 at 7:30am<br /><br />I cant think of a way to work around this ... any ideas??]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 07:30:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=18999&amp;title=crash-in-report-control-in-10-4#18999</guid>
  </item> 
  <item>
   <title><![CDATA[Crash in Report Control in 10.4 : This worked fine in 10.31, now...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=18998&amp;title=crash-in-report-control-in-10-4#18998</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 6031<br /><strong>Posted:</strong> 08 January 2007 at 7:29am<br /><br />This worked fine in 10.31, now it crashes in 10.4<DIV>&nbsp;</DIV><DIV>Click on a bit of column text in the ReportSample .. all works.</DIV><DIV>&nbsp;</DIV><DIV>Now, click on the preview text in the report and it crashes.</DIV><DIV>&nbsp;</DIV><DIV>It is because of (new) changes to OnClick:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">void CXTPReportRow::OnClick(CPoint ptClicked)<BR>{<BR>&nbsp;XTP_REPORTRECORDITEM_CLICKARGS clickArgs;<BR>&nbsp;clickArgs.pControl = m_pControl;<BR>&nbsp;clickArgs.pRow = this;<BR>&nbsp;clickArgs.ptClient = ptClicked;<BR><strong>&nbsp;clickArgs.pColumn = NULL;</strong></DIV><DIV>&nbsp;// find clicked item<BR>&nbsp;clickArgs.pItem = HitTest(ptClicked, &amp;clickArgs.rcItem, &amp;clickArgs.pColumn);</DIV><DIV>&nbsp;if (HasChildren() &amp;&amp; m_rcCollapse.PtInRect(ptClicked)<BR>&nbsp;&nbsp;&amp;&amp; clickArgs.pColumn &amp;&amp; clickArgs.pColumn-&gt;IsTreeColumn())<BR>&nbsp;{<BR>&nbsp;&nbsp;SetExpanded(!IsExpanded());<BR>&nbsp;&nbsp;return;<BR>&nbsp;}</DIV><DIV>&nbsp;// notify item if found<BR>&nbsp;if (!clickArgs.pItem)<BR>&nbsp;&nbsp;return;</DIV><DIV>&nbsp;clickArgs.pItem-&gt;OnClick(&amp;clickArgs);<BR>}<BR></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Because on a preview item, HitTest produces a NULL for the pColumn:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode">&nbsp;clickArgs.pItem = HitTest(ptClicked, &amp;clickArgs.rcItem, &amp;clickArgs.pColumn);</pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Therefore:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>void CXTPReportRecordItem::OnClick(XTP_REPORTRECORDITEM_CLICKARGS* pClickArgs)<BR>{<BR>&nbsp;pClickArgs-&gt;pRow-&gt;InternalAddRef();<BR><strong>&nbsp;pClickArgs-&gt;pColumn-&gt;InternalAddRef();</strong><BR>&nbsp;InternalAddRef();<BR></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Causes an access violation.</DIV>]]>
   </description>
   <pubDate>Mon, 08 Jan 2007 07:29:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6031&amp;PID=18998&amp;title=crash-in-report-control-in-10-4#18998</guid>
  </item> 
 </channel>
</rss>