This project has moved and is read-only. For the latest updates, please go here.

Magnifier memory leak?

Feb 24, 2016 at 8:05 AM
Hi all,

I've been using the magnifier control for an image viewing project where a user can open multi-page TIFF images, change page, rotate etc.

The magnifier works great but I seem to be having a problem where every time a new image or page is loaded to the viewer, the app memory increases (more so with bigger images) until eventually it throws an out of memory exception and crashes the app. I have tried without the magnifier control and it works fine so it is definitely this causing the issue.

I was wondering if there was a way to dispose or clear the memory for it, which I can call whenever the user changes the displayed image? Hiding the magnifier (visible) doesn't help and I couldn't see any other obvious way to achieve this.

Any help resolving this would be greatly appreciated.
Feb 24, 2016 at 9:23 PM

This is interesting.
Can you submit a small sample so we could see how you create and use the Magnifier ?