Monday, March 29, 2010

C# Event Handlers

I didn't know this but events can cause memory leaks.



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