01-10-2013 05:07 AM
I have a page that makes use of a WebView, that I push onto a NavigationPane.
When I watch my System Memory in the "System Summary" QNX System Information Perspective, my free memory drops from about 300M to 100M when I open the page. Fair enough, it's a large page, it is a photoalbum with high-res photos. Now, when I pop that page, then delete it, from the navigation stack, the system memory that is free goes back up to about about 170M. So I've effectively just lost half my memory. By opening that same WebView inside the Page I push over and over, I can eventually crash my app. The memory loss is not nearly as significant in subsequent runs, but there is still always a net memory loss. I've attempted to clear the WebStorage after the WebView is finished loading with this code:
as far as I can tell this has no effect at all on my app's memory usage.
Anyone have any ideas what might be going on here?