Link to home
Start Free TrialLog in
Avatar of bryanwells
bryanwells

asked on

delegates and dispose

If I declare an event using a delegate and I add event listeners to the event, what happens if one or more of the event listeners are distroyed?  Do I have to always remove the event listener from the event object, or is this done for me if an event listener is destroyed?
ASKER CERTIFIED SOLUTION
Avatar of smegghead
smegghead
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bryanwells
bryanwells

ASKER

I am not using remoting right now, but things worked much better when I was careful to remove all delegate event listeners when they were destroyed.  I thought that garbage collection might take care of this.