Weak Events Without The Fuss With A ‘WeakReference’ Event Proxy(www.buttonchrome.com)
submitted by
ButtonChrome(230) 2 years, 2 months ago
We all get clobbered at least once by memory leaks in our shiny new applications. One of the main causes of this is when objects that are expected to be garbage collected are not because we have not (or are unable) to unsubscribe them from the event handlers of longer living (static) objects.
The de-facto solution is to implement Microsoft’s ‘WeakEventManager’, but it takes a lot of coding, and adds another layer of complexity to your applications.
|category: Tips & Tricks
|Views: 67
tags:
Tips another
Everyones tags:
Your Tags: