AddHandler/RemoveHandler Not Disposing Correctly
问题 Using the AddHandler method, if I never use RemoveHandler , will that lead to memory leaks in some conditions and situations? I'm not so sure about the truth of this. And are there other causes to memory leaks that are solely available in VB as opposed to C#? 回答1: Well usually it doesn't.. but the possibility exists. When you subscribe to an event, you basically give a delegate (a func pointer if you will) to your method to the event publisher, who holds on to it as long as you do not