[
https://issues.apache.org/jira/browse/CB-6924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14033985#comment-14033985
]
Staci Cooper commented on CB-6924:
----------------------------------
I did find the source of the leak. It's the event handlers added to the
PhoneApplicationService.Current in both CordovaView.xaml.cs and in
ConsoleHelper.cs. To fix it I want to unwire those event handlers in the
unloaded event for CordovaView. My question is, does that fit in with the
intended behavior of MainPage?
> Memory leak navigating between native and hybrid pages in WP
> ------------------------------------------------------------
>
> Key: CB-6924
> URL: https://issues.apache.org/jira/browse/CB-6924
> Project: Apache Cordova
> Issue Type: Bug
> Components: WP8
> Affects Versions: Master
> Reporter: Staci Cooper
> Assignee: Staci Cooper
> Attachments: memleak.zip
>
>
> Context: Modify HelloWorld Cordova app for WP8 by adding a native page as the
> start page. Then give it a button to navigate to the Cordova page,
> MainPage.xaml
> Launch application to opening page (native).
> Click button to go to Cordova page.
> Click hardware back button to go to opening page.
> Repeat 4 times.
> When inspecting the memory profile, you see a steady increase in memory, and
> 5 copies of MainPage which have not been garbage collected (even if you force
> garbage collection).
> If this is done enough times the app crashes due to surpassing memory limit.
--
This message was sent by Atlassian JIRA
(v6.2#6252)