Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
UltraToolbarsManager memory leak.
posted

We have a winform view with a UltraToolbarsManager control  and we host it in wpf by WindowsFormsHost. When we close a tab with the hosted view and dispose WindowsFormsHost, view and UltraToolbarsManager directly, we have memory leaks. During investigation we find out some information:

 

It's clean diagram without additional ul elements in view which can use UltraToolbarsManager. We turn them of for investigation. 
But if we remove this.ultraToolbarsManager.DockWithinContainer = this; line. then we don't have memory leaks. But as result don't work some functional.

Also it can be fixed by reflection be deleting event handlers from "Events" and   "EffectiveValues" collections. But it isn't right way.

If you need any additional information please let me know.

Thank you.