<?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 : First chance exception when calling OnContextMenu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : First chance exception when calling OnContextMenu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 00:14:23 +0000</pubDate>
  <lastBuildDate>Mon, 22 Feb 2010 03:58:39 +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=16247</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[First chance exception when calling OnContextMenu : Hi;Using latest report control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16247&amp;PID=56972&amp;title=first-chance-exception-when-calling-oncontextmenu#56972</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 16247<br /><strong>Posted:</strong> 22 February 2010 at 3:58am<br /><br />Hi;<br>Using latest report control code from forum I get a first chance exception whenever a context menu is opened in the report control instance:<br><br><table width="99%"><tr><td><pre class="BBcode">void CPVBar::OnControlItemRClick(NMHDR * pNotifyStruct, LRESULT * /*result*/) {<br>&nbsp;&nbsp;&nbsp; XTP_NM_REPORTRECORDITEM* pItemNotify = reinterpret_cast&lt;XTP_NM_REPORTRECORDITEM*&gt;(pNotifyStruct);<br>&nbsp;&nbsp;&nbsp; if (pItemNotify-&gt;pRow==0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; // Cancel edit<br>&nbsp;&nbsp;&nbsp; if (Report_-&gt;IsEditMode())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Report_-&gt;EditItem(0);<br><br>&nbsp;&nbsp;&nbsp; CMenu menu;<br>&nbsp;&nbsp;&nbsp; VERIFY(menu.LoadMenu(IDR_PROCESSEXPLORER_POPUP));<br>&nbsp;&nbsp;&nbsp; // track menu<br>&nbsp;&nbsp;&nbsp; reinterpret_cast&lt;CMainFrame*&gt;(AfxGetMainWnd())-&gt;GetCommandBars()-&gt;TrackPopupMenuEx(menu.GetSubMenu(0), TPM_LEFTALIGN|TPM_LEFTBUTTON, pItemNotify-&gt;pt.x, pItemNotify-&gt;pt.y, this, NULL);<br>}</pre></td></tr></table><br><br>First chance exception at 0x7c812afb in XRSMSDispatchConfig.exe: Microsoft C++ exception: CUserException @ 0x0013e2c4.<br>First chance exception at 0x7c812afb in XRSMSDispatchConfig.exe: Microsoft C++ exception: CUserException @ 0x0013e4e4.<br>CArchive exception: endOfFile.<br>First chance exception at 0x7c812afb in XRSMSDispatchConfig.exe: Microsoft C++ exception: CArchiveException @ 0x0013e5a0.<br>EXCEPTION: CXTPReportControl::OnDragOver() - Es wurde versucht, auf eine Stelle hinter dem Ende von eine unbenannte Datei zuzugreifen.<br>(Access behind end of unnamed file.)<br>First chance exception at 0x7c812afb in XRSMSDispatchConfig.exe: Microsoft C++ exception: CUserException @ 0x0013e4e4.<br><br>It's the CArchive file used in drag&amp;drop functions of the CXTPReportControl class!<br>]]>
   </description>
   <pubDate>Mon, 22 Feb 2010 03:58:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16247&amp;PID=56972&amp;title=first-chance-exception-when-calling-oncontextmenu#56972</guid>
  </item> 
 </channel>
</rss>