1
Vote

AdvancedApplicationBarIconButton within control prevents hosted page from being garbage collected

description

I have a page which contains a Control, which within its default template contains an AdvancedApplicationBar which contains an AdvancedApplicationBarIconButton.
 
When navigating back from this page the reference from the AdvancedApplicationBar is keeping the page and all its contents in memory rather than removing it. I have confirmed this by examining the GC Root of the page in the Windows Phone Performance Analysis tool as well as removing the memory leak by commenting out the bar/button.

comments

dabcabc wrote Jun 8, 2012 at 10:35 AM

Apologies, after spending all morning digging through the source trying to track the cause of the memory leak, I double checked the version of the NuGet package I was using and found since I started using the package you've published an update resolving this.

Updating from 1.3.2 to 1.3.7 has resolved this memory leak issue.

wrote Feb 13, 2013 at 9:25 PM