C
C#13mo ago
Tueem

❔ Wpf massive memory overhead

Hey guys, I have this wpf window which enables me to select a rectangle on the screen. It gets opened on every available screen. But for some reason every time I open and close these windows (Im creating new ones) it adds like 100 - 200 MB to the unmanaged ram usage which doesn't get garbage collected. I will link the class that opens the windows and the window itself: Service: https://pastebin.com/NeKjVEHx Window CodeBehind: https://pastebin.com/gQgZgEuU Window XAML: https://pastebin.com/ZVeT8phX I'm also happy to receive any critizism about my code but please be polite, I've no Idea how to structure applications well but am eager to learn how.
Pastebin
using CommandWingDriver.UI.Core.Selection.EventArgs;using CommandWi...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
using CommandWingDriver.UI.Core;using CommandWingDriver.UI.Core.Sel...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
Petris
Petris13mo ago
IIRC this was a bug with the WPF hardware acceleration, I recall seeing an issue for it
Tueem
TueemOP13mo ago
so i just need to ignore it and let it eat my ram until that issue is fixed or can i somehow disable hardware acceleration to fix it?
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server