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.
Hello Alex,
Thank you for contacting Infragistics. Please clarify "winform view with a UltraToolbarsManager control". Have you attempted profiling the UltraToolbarsManager without hosting it in WPF and unhooking all Infragistics events prior to disposal? What were the results? Also, have you considered just using our WPF XamRibbon control instead of hosting the UltraToolbarsManager? Their functionality nearly match. Let me know if you have any questions. Please provide a sample application demonstrating the issue and steps.
Winform view it's a winform user control with UltraToolbarsManager ui element and other Infragistic/not Infragistic ui elmenets.We have two projects. The first is the project which was written by winforms. UltraToolbarsManager works without memory leaks in this projects. When we take the view with UltraToolbarsManager from "winform" project and host it in the second project(we use here wpf) we have memory leak. Our goal was reuse old code, as result we didn't consider Infragistics wpf controls.We will able to provide sample application demonstrating later.Thank you.
Ok, thank you for clarification. Have you considered jut using our XamRibbon in your WPF application?