We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

FYI: Possible memory leaks in winforms MDI

It appears as MDI Form is keeping EventHandleList around even after an MDI child form closes. This leaks objects associated with event handlers. I have used DevPartner to track those down. One place that reliably creates the leak is line #1539 in Renderers.cs, where toolTip.SetToolTip(..,..) associates tool tip text with control. The memory leak occurs only if the parent from is an MDI form. Another interesting aspect is that if you create a delegate on UI thread the _target seems to be leaking as if it’s kept in an EventHandlerList. I''ve found this article online that confirms my findings: http://dotnet247.com/247reference/msgs/36/180762.aspx

Loader.
Live Chat Icon For mobile
Up arrow icon