Always explicitly detach explicitly attached event handlers(nirandas.com)
submitted by
redcap(420) 3 years, 5 months ago
We extensively use events in our .net programs. Most of the times, it doesn’t give you debugging worries. However in some cases, it can become an issue
where your object containing event handler doesn’t get garbage collected due to event raising object holding a reference to the listener object.
|category: CLR
|Views: 21
tags:
CLR another
Everyones tags:
Your Tags: