WeakReferences remaining live - taking up memory?

JamesLaveryJamesLavery GBBeta, University ✭✭✭✭✭
edited January 2018 in Visual Studio

I'm trying to track down a memory leak in my app, and have found that the Xamarin.Forms theme implementation looks like it is leaving large numbers of WeakReferences in memory. While I'm sure that the objects to which these references refer have been freed (I hope!), I'm concerned that the Weak References themselves are not being freed and are therefore causing a memory leak.

In the screenshot below, we can see that I've got multiple WeakReferences which are still live, while their Retained Size is 0. Am I correct in interpreting this that the Weak References are taking up 16 Bytes each still?

If so, we have a problem with the Forms theme implementation I think.

Sign In or Register to comment.