unregister events every time the page disappears (like the app minimizes) to let the GC do work?
if you feel the GC isn't working, you can actually force it https://docs.microsoft.com/en-us/dotnet/api/system.gc.collect?view=net-5.0
by the way, if you want to really see what's going on, take a look at dotPeek
I know that i can force a collection but I've read it's not really something you'd want to do. I don't feel like I'm having any problems related to the GC, I just wanna make sure that I give the best chance i can. Wouldn't really want to create level 2 objects for no reason
I'll check this, thanks
ok good haha. I hate forcing GC
also, crap, I wasn't thinking about Xamarin, I don't think dotPeek will help there :/
Обсуждают сегодня