You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using the CommunityToolKit DataGrid in my application. Upon adding the DataGrid through a button, I observed that the application's memory usage increased from 98MB to 108MB. However, even after setting the DataGrid reference to null upon button click, the memory usage remains at 108MB instead of reverting back to the initial 98MB.
Additionally, I need confirmation on the proper method to dispose of the Community DataGrid. Is simply setting the DataGrid reference to null sufficient, or are there additional steps that need to be taken?
Regression
No response
Reproducible in sample app?
This bug can be reproduced in the sample app.
Steps to reproduce
1.Run the sample
2.Watch the process memory in the Diagnostic Tools.
3.Click Add Datagrid button.
4.Repeat step 2.
5.Click Dispose button.
6.Wait for few seconds and repeat step 2.
Expected behavior
My goal is to ensure that after setting the DataGrid reference to null, the application's memory usage returns to its original level of 98MB.
Describe the bug
I'm currently using the CommunityToolKit DataGrid in my application. Upon adding the DataGrid through a button, I observed that the application's memory usage increased from 98MB to 108MB. However, even after setting the DataGrid reference to null upon button click, the memory usage remains at 108MB instead of reverting back to the initial 98MB.
Additionally, I need confirmation on the proper method to dispose of the Community DataGrid. Is simply setting the DataGrid reference to null sufficient, or are there additional steps that need to be taken?
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
My goal is to ensure that after setting the DataGrid reference to null, the application's memory usage returns to its original level of 98MB.
Demo Sample - DataGrid_Demo.zip
Screenshots
Video reference - DataGrid_MemoryConsumption.zip
Windows Build Number
Other Windows Build number
Windows 11 23H2 (Build 22631.3447)
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
No response
Device form factor
Desktop
Nuget packages
CommunityToolkit.WinUI.UI.Controls.DataGrid Version="7.1.2"
Microsoft.WindowsAppSDK Version="1.5.240404000"
Microsoft.Windows.SDK.BuildTools Version="10.0.22621.3233"
Additional context
I am facing this issue in the older versions of the SDK too.
Help us help you
Yes, I'd like to be assigned to work on this item.
The text was updated successfully, but these errors were encountered: