-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 datagrid memory leak - selection and clear #9924
base: main
Are you sure you want to change the base?
Fix datagrid memory leak - selection and clear #9924
Conversation
cc: @KirillOsenkov |
In the original issue people reported that it also happens on ItemsControl and ListView etc. I only see a fix for Datagrid here. So its just a partial fix? If so a merge should not close the original issue. |
It's a good idea to fix this for other controls as well, but I think it's better to do it in separate PRs, one per control. This way if we break anything we can roll back just that one PR. |
I don't disagree but to my knowledge if the first post contains |
You know how good it feels to close an issue? Eitherway there's also #6983, so that one could be considered for DataGrid and the currently linked one renamed appropriately if the issue is in those controls. |
Yes. But I also know how insanely frustrating it feels for users if repo owners are closing an issue which isn't (fully) fixed. You have to create a new one, posting all the information again. Repo owners asking for a repro again, etc.
Sounds good 👍 |
Of course, I was joking, was most likely an oversight. |
Thanks @KirillOsenkov for the suggestion and the review. |
@singhashish-wpf No worries. By the way, a very tiny nit: Most of the codebase has space between |
Fixes #6983 and partially fixes 6087
Description
Clear properties which were holding references related to selection and focused info, once the datagrid is cleared.
Customer Impact
Huge memory consumption.
Regression
No
Testing
Local testing with sample app for memory leak fix.
WPF CTP testing.
Risk
Low
Microsoft Reviewers: Open in CodeFlow