I have been running .Net Memory Profiler and when I load and unload the docking MDI controls the previous view model assigned to each tool window is leaked. The leak appears to fix itself the next cycle of the docking MDI controls. So if I do the cycle 10 times I see 2 leaks per toolwindow. I have screen shots of the memory profile which I can provide. Also when stepping through the code the finalizer is never called for the view models assigned to the DataContext of each ToolWindow.
[Modified 3 years ago]