Tech Stuff with Rybo
An overview of technical problems and my solutions for them.
Monday, March 29, 2010
C# Event Handlers
I didn't know this but events can cause memory leaks.
http://blogs.msdn.com/cburrows/archive/2010/03/08/events-get-a-little-overhaul-in-c-4-part-ii-semantic-changes-and.aspx
This is a blog that shows how C# 4.0 events will not need to be locked. ( didn't know 3.0 events needed to be locked. )
Also, events can cause memory leaks if the Handler is not disposed of. ( myHander = null ).
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment