<?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 : OnBeforeEditOperationNotify</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : OnBeforeEditOperationNotify]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 00:46:13 +0000</pubDate>
  <lastBuildDate>Wed, 02 Apr 2008 19:44:38 +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=10048</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[OnBeforeEditOperationNotify : I&amp;#039;ve been experiencing a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10048&amp;PID=32988&amp;title=onbeforeeditoperationnotify#32988</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 10048<br /><strong>Posted:</strong> 02 April 2008 at 7:44pm<br /><br />I've been experiencing a crash when deleting a calendar event (right click in calendar, select delete from the popup). Usually I can delete one event without trouble, but the second event I try to delete always crashes.<br><br>I traced it to xtpCalendarControl.cpp on about line 2097 in version 10.42 in <br><br>BOOL CXTPCalendarControl::DoDeleteEvent(CXTPCalendarViewEvent* pViewEvent)<br><br>&nbsp;where it calls OnBeforeEditOperationNotify (as shown)<br><br>&nbsp;&nbsp;&nbsp; if (!::IsEventExists(pData, pEvent))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; //------------------------------------------------------------------------<br>&nbsp;&nbsp;&nbsp; BOOL bHandled = FALSE;<br><br>&nbsp;&nbsp;&nbsp; if (m_pActiveView)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bHandled = m_pActiveView-&gt;OnBeforeEditOperationNotify(xtpCalendarEO_DeleteEvent, pViewEvent);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; if (bHandled)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; }<br><br>The reason it crashes is that pEvent gets clobbered.. (feefee etc)<br><br>pEvent is fine before the function, then trash afterwards. To verify, I commented out the OnBeforeEditOperationNotify and it works fine.&nbsp;<br><br>I tried duplicating using the Codejock samples but was unable to do so. I'm using a CXTPCalendarCustomDataProvider with SQL. The project is unicode, statically linked. The problem occurs in both release and debug.<br><br>Any hints on what may be going on would be appreciated.<br><br>Thank you<br>]]>
   </description>
   <pubDate>Wed, 02 Apr 2008 19:44:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10048&amp;PID=32988&amp;title=onbeforeeditoperationnotify#32988</guid>
  </item> 
 </channel>
</rss>