WPF DataGrid memory leak in VS2022 #5785
Replies: 10 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Probed in Framework versions 4.6.1/4.8 and net 5: |
Beta Was this translation helpful? Give feedback.
-
@sneik15 Have you also checked by using DependencyProperty for datos or providing implementation of INotifyPropertyChanged. Please refer to https://stackoverflow.com/questions/18542940/can-bindings-create-memory-leaks-in-wpf/18543350#18543350 |
Beta Was this translation helpful? Give feedback.
-
@singhashish-wpf I have tested it and it still happens |
Beta Was this translation helpful? Give feedback.
-
Great, could you please upload the zip for it also? |
Beta Was this translation helpful? Give feedback.
-
Both the list of the data(ObservableCollection) and the data(Datos) itself already implement INotifyPropertyChanged in the original zip that I have uploaded. |
Beta Was this translation helpful? Give feedback.
-
@sneik15 Please upload DependencyProperty version of the zip which you tested. |
Beta Was this translation helpful? Give feedback.
-
@singhashish-wpf I don't know how to correctly implement a DependencyProperty version. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello, I have the same issue. I originaly thought this was issue of ReactiveUI: but it turns out it is issue with WPF somewhere. I have built repository showcasing the issue (Branch without ReactiveUI and project ReactiveUI_DataGrid_MemoryLeak): This issue exists for me on VS 2022, VS2019, no matter debugger or not, NET5, NET6, NET CORE 3.1 The demo logic is is MainWindow.xaml.cs |
Beta Was this translation helpful? Give feedback.
-
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version] [regression] [worked-in:16.11.3]
Original Source
I have this code, and no matter what I do I keep getting a memory leak from the DataGrid data update. I've been looking at all the other answers to this problem here for days and I haven't found anything that works for me. I have a WPF window and this code to update the data (it is a small version of what happens in the real code, but I get the same bug). Works fine in VS2019.
I have this WPF code:
This class code:
And this data class:
Original Comments
Feedback Bot on 10/20/2021, 11:07 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
Beta Was this translation helpful? Give feedback.
All reactions