-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ToolStrip memory leak due to MouseHoverTimer and #4808 #11358
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11358 +/- ##
===================================================
+ Coverage 75.25676% 75.26360% +0.00683%
===================================================
Files 3085 3085
Lines 633571 633629 +58
Branches 46831 46839 +8
===================================================
+ Hits 476805 476892 +87
+ Misses 153368 153337 -31
- Partials 3398 3400 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
@Olina-Zhang Could your team please test this pr to confirm the issues are resolved? |
@elachlan @kirsan31 Tested this PR, just can confirm that GH issue #4808 is fixed, I am not clear how to verify #11334, can you give some more information about how to repro it?
|
Same repro app, the key is to remove item immediately after timer.mp4 |
Fix #4808 and problem that was mentioned in #11334.
Proposed changes
Replace
ToolStripItem? _currentItem
withWeakReference<ToolStripItem?> _currentItem
inMouseHoverTimer
Implement this suggestion.
Customer Impact
No more memory leak if
ToolStripItem
will be disposed after MouseHoverTimer start.No more memory leak of chilled elements due to
DisplayedItems
andOverflowItems
collections..Regression?
Risk
Minimal.
Screenshots
ToolStripItem
below was disposed, but remain in memory:Test methodology
Microsoft Reviewers: Open in CodeFlow