<?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 : &#069;vent resize AccessViolati&#111;nExcepti&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : &#069;vent resize AccessViolati&#111;nExcepti&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 06:48:06 +0000</pubDate>
  <lastBuildDate>Mon, 13 Mar 2006 09:46:23 +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=3688</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[&#069;vent resize AccessViolati&#111;nExcepti&#111;n : This is caused, in fact, by Application.doevents()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11395&amp;title=event-resize-accessviolationexception#11395</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3688<br /><strong>Posted:</strong> 13 March 2006 at 9:46am<br /><br /><P>This is caused, in fact, by Application.doevents() in C#. There may be some concurency control which is going wrong, if multithreading is being used by the activex control.</P><P>Thnks</P>]]>
   </description>
   <pubDate>Mon, 13 Mar 2006 09:46:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11395&amp;title=event-resize-accessviolationexception#11395</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent resize AccessViolati&#111;nExcepti&#111;n : Hi,EventChanged is fired only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11329&amp;title=event-resize-accessviolationexception#11329</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3688<br /><strong>Posted:</strong> 09 March 2006 at 7:09am<br /><br />Hi,<br><br>EventChanged is fired only once for one dragging operation - in its finish to commit changes.<br>&nbsp;<br>BeforeEditOperation is fired for each mouse move for dragging(/resize) operation.<br>It is called from OnMouseMove window message handler.<br>&nbsp;<br>When you call DoEvents inside BeforeEditOperation, window messages are processed from the message queue and you can enter into OnMouseMove method again and into BeforeEditOperation and again call DoEvents.<br>&nbsp;<br>The call stack is like:<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; DoEvents<br>&nbsp;&nbsp;&nbsp; BeforeEditOperation<br><br>&nbsp;&nbsp;&nbsp; OnMouseMove <br>&nbsp;&nbsp;&nbsp; DoEvents<br>&nbsp;&nbsp;&nbsp; BeforeEditOperation<br>&nbsp;&nbsp;&nbsp; OnMouseMove //- initial message<br>&nbsp;<br>I am not sure how DoEvents process messages but you may have stack overflow.<br>Please check whether is it true or not. <br>&nbsp;<br>Other problem is that CalendarControl::OnMouseMove is not re-enterable. <br>Each call of OnMouseMove may change dragging context and when we return from subsequent call of BeforeEditOperation the context may be unexpectedly changed. For example we perform dragging but inside BeforeEditOperation OnLButtonUp was processed and the dragging was finished.<br>&nbsp;<br>We do not expect such situation and I am not sure that this is a good way to make OnMouseMove as re-enterable.<br>&nbsp;<br>Do you really need to call DoEvents from BeforeEditOperation each time?<br>Is it possible to cache some your data once when dragging started? (and so far call DoEvents only once for an operation).<br>See also IsEditOperationDisabled which is called before dragging started.<br>&nbsp;<br>To avoid such re-entering sometimes one can use a short timer (10-100 ms). I mean that some handler set the request using timer and in the OnTimer I can perform some actions which were not allowed or just not fine inside that handler. I am not sure can this help you or not, but just in case.... <br>&nbsp;<br>If the information above was not helpful, please send more details about your logic for EventChanged and BeforeEditOperation methods. <br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 09 Mar 2006 07:09:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11329&amp;title=event-resize-accessviolationexception#11329</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent resize AccessViolati&#111;nExcepti&#111;n : the code crash because of this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11321&amp;title=event-resize-accessviolationexception#11321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3688<br /><strong>Posted:</strong> 08 March 2006 at 12:27pm<br /><br /><P>the code crash because of this line on the AccessViolationException:</P><P>Application.DoEvents();</P><P>quite strange.. </P>]]>
   </description>
   <pubDate>Wed, 08 Mar 2006 12:27:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11321&amp;title=event-resize-accessviolationexception#11321</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent resize AccessViolati&#111;nExcepti&#111;n : Is it possible that if the beforeEditOperation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11320&amp;title=event-resize-accessviolationexception#11320</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3688<br /><strong>Posted:</strong> 08 March 2006 at 12:02pm<br /><br /><P>Is it possible that if the beforeEditOperation trigger and the EventChanged one cause the accessviolation trigger because some objects are locked.</P><P>The two mentionned triggers have some quite complex implementations for me. The EventChanged for instance has operations that do take a lot of time because of network and database operations that need to be completed. </P><P>is it possible that if I make changes very quickly.. changes like dragMove and drag_resize that the triggers are called so quickly that an access violation problem is raised? ... maybe because they are trying to reach an object simultaneously</P>]]>
   </description>
   <pubDate>Wed, 08 Mar 2006 12:02:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11320&amp;title=event-resize-accessviolationexception#11320</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent resize AccessViolati&#111;nExcepti&#111;n : Hi,Please try to localize a problem.For...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11135&amp;title=event-resize-accessviolationexception#11135</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3688<br /><strong>Posted:</strong> 23 February 2006 at 9:32am<br /><br />Hi,<br><br>Please try to localize a problem.<br>&nbsp;<br>For that you can comment EventChanged and before_edit.<br>If a problem went out - uncomment some piece of code and test again.<br>Using this way you can localize it.<br>May be a problem is not in those handlers, remember what have you changed before it appeared.<br>&nbsp;<br>Also can you send me the code of your EventChanged and before_edit handlers to analyze.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 23 Feb 2006 09:32:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11135&amp;title=event-resize-accessviolationexception#11135</guid>
  </item> 
  <item>
   <title><![CDATA[&#069;vent resize AccessViolati&#111;nExcepti&#111;n : Hi, I am having a problem when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11113&amp;title=event-resize-accessviolationexception#11113</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1751">WaaZ</a><br /><strong>Subject:</strong> 3688<br /><strong>Posted:</strong> 22 February 2006 at 10:50am<br /><br /><P>Hi,</P><P>I am having a problem when I resize an event, an AccessViolationException is raised and is unhandled. I am using C# and I really cannot find out which statement is raising this since it does not crash on any of my written codes.</P><P>I have implemented EventChanged and before_edit in the code.</P><P>Thanks</P><P>WaaZ</P>]]>
   </description>
   <pubDate>Wed, 22 Feb 2006 10:50:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3688&amp;PID=11113&amp;title=event-resize-accessviolationexception#11113</guid>
  </item> 
 </channel>
</rss>