WebBrowser Control opening large images - memory issue?

Up vote 1 down vote favorite share g+ share fb share tw.

I have a Master page which contains urls in a listbox. A tap on one of the urls navigates to a detail page containing a web browser control. When the web browser control is loaded, I am navigating it to a plain html page which contains a single 'img' tag.

I am using the WebBrowserControl. InvokeScript method to set the url of the 'img' tag to the selected one. I am opening this way images that are of 500x5000 pixels in size, and weight around 500kB.

(only a single image at a time in the web browser control). I have noticed that whenever I start doing something with the images inside the web browser control (scrolling around, zooming in and out) and then pressing the back button, the memory that has been taken by the web browser control / detail page isn't fully restored. (Smaller images, say 500x500 don't have this problem) After a while of doing the master - detail navigations I can quickly jump to 100+MB memory usage.

And it stays that for the entire lifespan of the application. The interesting thing is that everything seems to be fine, pages do get garbage collected (page destructors do get called) I don't know really what are the inner-workings, but there may be some caching going on or something similar and that part doesn't get gc'd. Any ideas how to prevent this behaviour?

Silverlight windows-phone-7 link|improve this question edited 36 mins ago asked 6 hours agokrdx244 100% accept rate.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions