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)
- DolbyVision - WinUI2 on UWP HOT 1
- Custom Title Bar Drag Region prevents click on taskbar buttons in Fullscreen mode at certain size HOT 3
- How To delate the entire titlebar HOT 5
- Rearranging GridView items causes appcrash with exception 8000ffff only when running as administrator HOT 3
- How to change the selection text foreground color in WPF MS TextBox control HOT 3
- Proposal: We have SelectionHighlightColor but what about SelectionForegroundColor? HOT 1
- MediaCapture + WinUI 3 MediaPlayerElement doesn't support same subtype formats as WinUI 2 CaptureElement HOT 1
- RichEditBox in UWP/WinUI3 Loses Font Family Settings for Subsequent Lines if the First Line Contains Only a Newline HOT 1
- Self contained, WindowsPackageType none, Single file published winui3 app is not launching HOT 15
- EmbeddedResource in Xaml HOT 1
- The `TextBlock.Padding` value behaves unexpectedly. HOT 2
- CommandBarFlyout doesn't close when a MenuFlyoutItem is clicked HOT 1
- PointerPointProperties.IsBarrelButtonPressed does not return the expected value on PointerEntered
- Microsoft.UI.Interop.h causes -Wmissing-field-initializers when using ClangCL
- NumberBox parsing
- Proposal: Update the Figma design toolkit to modern figma standards and new UI Kit support
- Offset Issue with items in ItemsRepeater inside a ScrollViewer when modifying Visibility HOT 1
- TabView item drag does not adapt to DPI change HOT 2
- Regression: pressing F6 with Light Dismissible TeachingTip does nothing now
- The Loading event of UserControl is not triggered while the Loaded event is triggered when Visibility is Collapsed.
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.