Unlocking the Secrets of Managed Memory: Dive into Event Handler Leak Insights!
#visualstudio #dotnet #debugging #memoryleaks
https://devblogs.microsoft.com/visualstudio/unlocking-the-secrets-of-managed-memory-dive-into-event-handler-leak-insights/
@alvinashcraft thanks for the link. I tried to follow along but I didn't see the new option despite being on 17.9 preview 2. Several others noted the same in the comments. Any suggestions?
@TallBaldGeek Hmm… What aren’t you seeing? The Insights tab? I tried it now with a .NET desktop app, and I can get there and see the Event Handler leaks section. I tried with WPF and WinUI 3 projects.
I’ve got preview 2 installed and haven’t enabled any additional preview settings in my VS options.
@alvinashcraft I saw the Insights tab but it only had the duplicate string and sparse array sections, nothing about event handlers. (my comment on the post is under Brett Haney)
Possibly dumb question - is the event handler section supposed to show up all the time or only if there are handler leaks found?
I was profiling a Framework 4.8 asp.Net application, which does have some custom event handlers in it. Maybe we're just diligent and not causing leaks therefore nothing shows?
@TallBaldGeek Maybe. Or maybe it only shows that section for the newer .NET versions. I didn't try a Framework project. I'll try that when I'm back at my laptop (probably tomorrow morning... Family stuff tonight).
@alvinashcraft thanks! It's not a big deal (I'm not actively looking at a performance problem) I was just curious since the blog post didn't say specifically what conditions the new section was available for.