Open hacpatb opened 1 year ago
Hello, Can you confirm that this is happening only in v4.4 and over ? Do you have more details ? Thank you
Hello, Can you confirm that this is happening only in v4.4 and over ? Do you have more details ? Thank you
Hi! Yes, this case reproduced on v4.4 and over. I tested version 4.3 and dotMemory don't show event handler leak for this element.
Details: Windows 10(19043.1415), .Net framework 4.7.2, VS 2022(17.5.4), but i think it isn't important. For reproduce you can create empty wpf project for net framework (may be not only for .net), install nuget package v4.4 or v4.5 from repository. Then look at previous comment, create window with dtp and open-close that window several times.
Hi, I can confirm this happens in v4.4 and over. I just made a fix related to this. It will be part of v4.7.
Thank you for pointing this out.
这里是郭瑞的邮箱,已收到您的来件,我会尽快拜阅并给予您回复
Found this leak when update from 4.0.1 to 4.5.0. I looked at the code and found added some event in version 4.4.0 for this element. If you open and then close window or remove element with dtp one of event don't detach and dtp remains in memory. We can repeat this. Create window with button, on button click open new window with dtp, close window and repeat this 10-100 times. .NET Framework 4.7.2