Comments (5)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Open similar issues:
- Memory leak when updating checkbox with x:Bind(Binding). (#8634), similarity score: 0.72
- WinUI3 unpackaged application memory consumption. (#8736), similarity score: 0.71
- Memory leak in WinUI3 multiple window applications (#9063), similarity score: 0.70
Closed similar issues:
- Memory leak in Multi-window scenario (#7617), similarity score: 0.70
- Memory leaks on navigation (#9044), similarity score: 0.70
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from microsoft-ui-xaml.
The mentioned concerns do not pertain to the problem I've reported here.
from microsoft-ui-xaml.
Hi, thanks for posting. If you call GC.Collect() in this loop, do you still see this leak? Thanks!
from microsoft-ui-xaml.
@JesseCol, Thank you for the update. We attempted your suggestion, and it did indeed resolve the memory leak. However, it introduced a performance issue. Without invoking GC.Collect(), the loop took 10 seconds to complete. Upon calling GC.Collect(), it took over 2 minutes to finish the loop. For your reference I attached the video demonstration with this update.
DataGrid_PerformanceIssue_with_GC.Collect().zip
from microsoft-ui-xaml.
Thanks! My suggestion of running GC.Collect() isn't that this would be a good way to fix the problem, it was just to see if there's a true memory leak here or if it's just that not all of the managed objects have been collected yet.
It sounds like what you're seeing here is normal CLR behavior. Your loop is allocating a lot of new objects, and they won't get cleaned up until the garbage collector runs. In a real-world app, you usually wouldn't call GC.Collect() yourself, you'd just let the CLR manage the memory itself.
from microsoft-ui-xaml.
Related Issues (20)
- InputNonClientPointerSource no longer works after removing titlebar with SetBorderAndTitleBar HOT 1
- Dragging a file from Explorer over top of the application window will launch another process HOT 1
- Proposal: Improve exception message for incorrect bound type using x:DataType
- MenuFlyout text color has the wrong theme when the IsEnable property is changed in CodeBehind and the application theme is different from the OS theme HOT 1
- ComboBox selects the wrong item after it is collapsed HOT 1
- MediaSource.ExternalTimedTextSources.Clear causes unhandled exception if loaded TimeTextSource was not valid HOT 1
- ListView throws ArgumentOutOfRangeException when CollectionChanged is handled with Action = Reset HOT 1
- Pivot Item Content disappears from Pivot when dragging HOT 1
- When the IsSynchronizedWithCurrentItem is true throws XamlParseException HOT 1
- Proposal: Add Method to Hit Test and Manually Transfer Clicks (like in Android & iOS) HOT 1
- Resizing cursor showed near caption button when IsResizable=false while ExtendsContentIntoTitleBar=true HOT 1
- ColorPicker color name tooltip not dismissing HOT 1
- Selected SelectorBarItem text flickers when moving the mouse HOT 1
- MenuFlyout with cascading menus has weird shadow HOT 1
- Hiding titlebar with SetBorderAndTitleBar(true, false) cause maximizing the window hide taskbar HOT 1
- WinUI 3 - Blank App, Packaged (WinUI 3 in Desktop) C# project template crashes in Release configuration HOT 1
- [.NET MAUI 9.0 Preview 4] Windows .NET MAUI App throws a "combase.dll: A fail fast exception occurred" upon making a grid visible on Windows HOT 2
- Using a custom DependencyProperty extension in XAML causes XamlParseException on property assignment HOT 1
- Binding to own dependency properties is not working HOT 1
- TextBox menu does not follow theme change HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-ui-xaml.