LaMarvin Support Forums
LaMarvin Support Forums
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Misc
 VBInfoZine Articles
 Delayed event handling for WinForms applications
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic  Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

PaloM

19 Posts

Posted - 06/28/2005 :  18:15:25  Show Profile  Visit PaloM's Homepage  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
[url]http://www.vbinfozine.com/a_deh.shtml[/url]

PaloM

19 Posts

Posted - 07/09/2005 :  17:13:35  Show Profile  Visit PaloM's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I've published a fix to the code accompanying the article "Delayed event handling for WinForms applications." ([url]http://www.vbinfozine.com/a_deh.shtml[/url].) This fix is available at [url]http://www.vbinfozine.com/c/deh.zip[/url].

Please download and use the updated DelayedEventDispatcher.vb/cs classes, otherwise your application can end up invoking processing for a single event multiple times.

This can happen if your event handling code yields control to Windows (for example by calling the Application.DoEvents method). In these cases, the old DelayedEventDispatcher could invoke your event handling code multiple times, sometimes even resulting in a StackOverflowException.

The fix is in the DelayedEventDispatcher.HandleEvent method (in both VB.NET and C# versions). Please update the DelayedEventDispatcher.vb/cs files in all your projects that are using them. Or, if you're using the LaMarvin.Windows.Forms.Events.dll assembly, replace the assembly in your source directory with the new one and recompile all applications that reference it.

Kudos to Matt Stone for discovering this issue. Thanks Matt!

I'm sorry for any inconvenience this might have caused to you.

Palo
Go to Top of Page

Zachary82499

3 Posts

Posted - 06/26/2006 :  03:04:08  Show Profile  Visit Zachary82499's Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by PaloM

Please update the DelayedEventDispatcher.


"update" is exceptional! I love it!


[url="http://www.scuba-diving-sites.com/scuba-diving/scuba-diving-cayman.php"]Scuba Diving Cayman
[/url] - [url="http://www.car-hire-search.com/car_hire/car-hire-new-york.php"]Car Hire New York
[/url]
Go to Top of Page
  Previous Topic Topic  Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
LaMarvin Support Forums © 2007 LaMarvin. All Rights Reserved. Go To Top Of Page
Snitz Forums 2000