Interesting Note on Delegates, Events and Multithreading

15 January, 2005 (16:33) | .NET Code Related

I like the note that Brad Abrams made regarding the common usage of code for calling Event Handlers. I had no idea this much publicized approach was not thread safe. Very interesting stuff.

Comments

Comment from Keith Patrick
Date: 1/16/2005, 7:18 am

Probably because the 1.1 MSDN documentation itself advocates the non-threadsafe usage:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconeventsmini-sample.htm

Comment from Thomas Wagner
Date: 1/16/2005, 1:38 pm

Ha! Wouldn’t you know it?! Thanks Keith.

Write a comment