I am tracking down a memory leak in some applications. Many forms share the same Spellchecker object that therefore out lives any individual form. I am aware that this can be a cause of memory leaks if the handler events are not removed properly.
AddHandler and RemoveHandler make sense to me as it's clear if AddHandler is called then there should be a corresponding RemoveHandler. However does the Handles keyword automatically remove the handlers for you?
Private Sub spellingContextMenu_Popup(ByVal sender As Object, ByVal e As System.EventArgs) Handles spellingContextMenu.Popup
In the above if the spellingContextMenu lives for a long time but the form dies then should the handler be removed manually?
Microsoft's own page offers no guidance on this http://msdn.microsoft.com/en-us/library/6k46st1y.aspx#feedback