ghost1372 / HandyControls

Contains some simple and commonly used WPF controls based on HandyControl
https://ghost1372.github.io/
MIT License
1.07k stars 102 forks source link

Memory leak when using ComboBox #197

Closed kirill-782 closed 11 months ago

kirill-782 commented 1 year ago

Describe the bug

If a combobox appears in the window, then after closing the window, the window instance will not be collected by the garbage collector

Steps to reproduce the bug

1) Create a window 2) Add to the Combobox window 3) Open the window 4) Close the window

Expected behavior

Window instance available for garbage collection

Screenshots

Link graph when window is closed (leak) image

Link graph when window is open image

NuGet package version

HandyControls (Custom version) 3.4.5

IDE

Visual Studio 2019

Framework type

.Net Framework 4.7.2

Windows version

No response

Additional context

No response

PIE-kimty commented 1 year ago

Yes, I agree. I also had a hard time finding the memory leak because of the same problem. Currently, the existing WPF ComboBox is being used or replaced with another ComboBox. But other features work very well. thank you

Visual Studio 2022 .NET 6.0 Windows 11

ghost1372 commented 11 months ago

report it in original repo