posted on Saturday, February 21, 2004 8:47 PM
by
demiliani
Leak in .NET ContextMenu
Interesting post on Paul Wilson Blog (one of my favourite Blog) about a possible new .NET Framework leak.
It seems that every time a MenuItem is added to a ContextMenu in .NET WinForms, it adds a reference to the MenuItem in an internal static hashtable. This may not be “wrong” if you only setup your context menu one time, but if you do things dynamically it means that all the old context menuitems are still technically reachable...
Check Paul Blog for more info...