MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Event Handler Leak on every button click - System.Windows.VisualStateManager+<>c__DisplayClass12_0

Open VibinKesavan opened this issue 10 months ago • 1 comments

Bug explanation

Hi, I am using this package in my app, and while I was doing memory profiling of the app using dotmemory, I am getting Event handlers leak

Type: System.Windows.VisualStateManager+<>c__DisplayClass12_0 Retained Size: 3,360 Count: 105

Every button click is creating a handler leak, so far its not breaking the app, but I through of raising it so that we can fix it. can you please help ?

Version

5.0.0

VibinKesavan avatar Apr 24 '24 18:04 VibinKesavan

@VibinKesavan Could you share a sample application where you can see this leak? In a very simple app with just a MDIX styled button, I do not see this leak.

Many factors could influence the outcome, so if you don't have a sample application, please elaborate on which particular style of button is used, which bindings are set up and so on. Thanks.

nicolaihenriksen avatar May 03 '24 13:05 nicolaihenriksen

This issue is marked stale because it has been open 30 days with no activity. Remove stale label or update the issue, otherwise it will be closed in 14 days.

github-actions[bot] avatar Jun 03 '24 01:06 github-actions[bot]

This issue was closed because it has been stalled for 14 days with no activity.

github-actions[bot] avatar Jun 17 '24 01:06 github-actions[bot]