ToolWindows is leaking viewmodel

Docking/MDI for WPF Forum

Posted 3 years ago by Michael Janulaitis - Corner Bowl Software
Version: 21.1.1

I am using .NET Memory Profile and see the ToolWindow maintains a reference to the view model causing a memory leak.  If I remove view model from the ObservableCollection that is assigned to the ToolWindow the view model is not leaked.  Also if I add a breakpoint to my code (outside of the memory profiler) I can see the view model finalizer is called.  I can generate a screen shot showing the leak upon request.

[Modified 3 years ago]

Comments (1)

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA


For scenarios like this, please either give us code/steps to reproduce the problem in one of our samples, or make a new simple sample project that shows it happening and send that to our support address.  Reference this thread in the email you send and remove the bin/obj folders from the .zip so it doesn't get spam blocked.  Then we will debug with the sample and see what's going on.  Thanks!

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.