Author: you've been HAACKED | Posted on: 1/9/2009 11:01:18 AM | Views : 1193

I?ve been having trouble getting to sleep lately, so I thought last night that I would put that to use and hack on Subtext a bit. While doing so, I ran into an old Asynchronous Fire and Forget helper method written way back by Mike Woodring which allows you to easily call a delegate asynchronously. On the face of it, it seems like you could simply call BeginInvoke on the delegate and be done with it, Mike?s code addresses a concern with that approach: Starting with the 1.1 release of the .NET Framework, the SDK docs now carry a caution that mandates calling EndInvoke on delegates you've called BeginInvoke on in order to avoid potential leaks. This means you cannot simply "fire-and-forget" a call to BeginInvoke without the risk...(read more) ...

Go to the complete details ...