<?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 : XTP_NM_REPORT_SORTORDERCHANGED crash</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : XTP_NM_REPORT_SORTORDERCHANGED crash]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 20:29:18 +0000</pubDate>
  <lastBuildDate>Sun, 08 Nov 2009 11:28:00 +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=15532</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[XTP_NM_REPORT_SORTORDERCHANGED crash : No, I do. You can use derived...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15532&amp;PID=54642&amp;title=xtp-nm-report-sortorderchanged-crash#54642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15532<br /><strong>Posted:</strong> 08 November 2009 at 11:28am<br /><br />No, I do. You can use derived classes with extra details used]]>
   </description>
   <pubDate>Sun, 08 Nov 2009 11:28:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15532&amp;PID=54642&amp;title=xtp-nm-report-sortorderchanged-crash#54642</guid>
  </item> 
  <item>
   <title><![CDATA[XTP_NM_REPORT_SORTORDERCHANGED crash :   FACT: My post shows a bug...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15532&amp;PID=54563&amp;title=xtp-nm-report-sortorderchanged-crash#54563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 15532<br /><strong>Posted:</strong> 04 November 2009 at 11:28am<br /><br /><DIV></DIV><DIV></DIV><DIV><strong>FACT:</strong> My post shows a <strong>bug OR erroneous documentation.</strong></DIV><DIV>&nbsp;</DIV><DIV>You obviously did not read it.</DIV>]]>
   </description>
   <pubDate>Wed, 04 Nov 2009 11:28:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15532&amp;PID=54563&amp;title=xtp-nm-report-sortorderchanged-crash#54563</guid>
  </item> 
  <item>
   <title><![CDATA[XTP_NM_REPORT_SORTORDERCHANGED crash :  piece of XTPRecordHeader.cpp...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15532&amp;PID=54494&amp;title=xtp-nm-report-sortorderchanged-crash#54494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15532<br /><strong>Posted:</strong> 02 November 2009 at 11:46am<br /><br /><DIV></DIV><FONT size=2><DIV>piece of XTPRecordHeader.cpp file ver 12.1:</DIV><DIV>m_pControl-&gt;SendNotifyMessage(XTP_NM_REPORT_PRESORTORDERCHANGED);</DIV><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (bGroupOrderChanged)</P><P>m_pControl-&gt;Populate();</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>m_pControl-&gt;ReSortRows();</P><P>m_pControl-&gt;SendNotifyMessage(XTP_NM_REPORT_SORTORDERCHANGED);</P></FONT>]]>
   </description>
   <pubDate>Mon, 02 Nov 2009 11:46:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15532&amp;PID=54494&amp;title=xtp-nm-report-sortorderchanged-crash#54494</guid>
  </item> 
  <item>
   <title><![CDATA[XTP_NM_REPORT_SORTORDERCHANGED crash : Using 12.0.1. Same code for 13.2...  From...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15532&amp;PID=54493&amp;title=xtp-nm-report-sortorderchanged-crash#54493</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 15532<br /><strong>Posted:</strong> 02 November 2009 at 10:39am<br /><br /><DIV>Using 12.0.1. Same code for 13.2...</DIV><DIV>&nbsp;</DIV><DIV>From source comments:</DIV><DIV>&nbsp;</DIV><DIV><strong><FONT color=#ff0000>This is what the DOCUMENTATION SAYS:</FONT></strong></DIV><DIV>// BEGIN_MESSAGE_MAP(CReportSampleView, CXTPReportView)<BR>//&nbsp;&nbsp;&nbsp;&nbsp; ON_NOTIFY(XTP_NM_REPORT_SORTORDERCHANGED, XTP_ID_REPORT_CONTROL, OnReportSortOrderChanged)<BR>// END_MESSAGE_MAP()<BR>//<BR>// void CReportSampleView::OnReportSortOrderChanged(NMHDR*&nbsp; <strong><FONT color=#ff0000>pNotifyStruct</FONT></strong>, LRESULT* /*result*/)<BR>// {<BR>//&nbsp;&nbsp;&nbsp;&nbsp; <strong>XTP_NM_REPORTRECORDITEM* pItemNotify = <FONT color=#ff0000>(XTP_NM_REPORTRECORDITEM*) pNotifyStruct</FONT>;<BR></strong>//&nbsp;&nbsp;&nbsp;&nbsp; ASSERT(pItemNotify != NULL);<BR>//<BR>//&nbsp;&nbsp;&nbsp;&nbsp; // TODO: Handle command.<BR>// }</DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>From source:</DIV><DIV><strong><FONT color=#ff0000>This is what the CODE DOES:</FONT></strong></DIV><DIV>m_pControl-&gt;SendNotifyMessage(XTP_NM_REPORT_PRESORTORDERCHANGED);<strong> // Second parameter is NULL!</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong></strong>&nbsp;</DIV><DIV>LRESULT CXTPReportControl::SendNotifyMessage(UINT nMessage, <strong><FONT color=#ff0000>NMHDR* pNMHDR</FONT></strong>) const <strong><FONT color=#ff0000>&lt;------ NULL!</FONT></strong><BR>{<BR>&nbsp;if (!IsWindow(m_hWnd))<BR>&nbsp;&nbsp;return 0;</DIV><DIV>&nbsp;<strong>NMHDR nmhdr;<BR>&nbsp;if (pNMHDR == NULL)<BR>&nbsp;&nbsp;pNMHDR = &amp;nmhdr; <FONT color=#ff0000>&lt;---------- assignment!</FONT></strong></DIV><DIV>&nbsp;pNMHDR-&gt;hwndFrom = GetSafeHwnd();<BR>&nbsp;pNMHDR-&gt;idFrom = GetDlgCtrlID();<BR>&nbsp;pNMHDR-&gt;code = nMessage;</DIV><DIV>&nbsp;CWnd *pOwner = GetOwner();<BR>&nbsp;if (pOwner &amp;&amp; IsWindow(pOwner-&gt;m_hWnd))<BR>&nbsp;&nbsp;return pOwner-&gt;SendMessage(WM_NOTIFY, pNMHDR-&gt;idFrom, (LPARAM)<strong><FONT color=#ff0000>pNMHDR</FONT></strong>); <strong><FONT color=#ff0000>&lt;--- NOT the struct we expect!</FONT></strong><BR>&nbsp;else<BR>&nbsp;&nbsp;return 0;<BR>}</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000><strong><FONT size=3>WM_NOTIFY does NOT send a XTP_NM_REPORTRECORDITEM struct for <FONT color=#ff0000>XTP_NM_REPORT_PRESORTORDERCHANGED message! So you will get a CRASH!</FONT></FONT></strong></FONT></DIV><DIV><FONT size=3></FONT>&nbsp;</DIV><DIV><FONT size=3></FONT>&nbsp;</DIV><DIV><strong><FONT size=3>It's a bug. Period. End of discussion. Please fix it.</FONT></strong></DIV>]]>
   </description>
   <pubDate>Mon, 02 Nov 2009 10:39:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15532&amp;PID=54493&amp;title=xtp-nm-report-sortorderchanged-crash#54493</guid>
  </item> 
 </channel>
</rss>