ImageViewer images collection
Posted: Wed May 05, 2010 1:03 pm
Hello,
I have a problem with image viewer. When I use big tiff file for example 500 pages, I dispay thumbnails of images in thimbnail viewer.
The code is: imgViewer.Images.Add(this.filename);
When I scroll in thumbnailViewer thumbnail by thumbnail, I get error "out of memory".
In Windows Task Manager I see that memory usage of my application is very big.
Is there any way to optimize memory usage. For example, after display an image in imageViewer and go to next image, to realise resources for first image?
Best regards
I have a problem with image viewer. When I use big tiff file for example 500 pages, I dispay thumbnails of images in thimbnail viewer.
The code is: imgViewer.Images.Add(this.filename);
When I scroll in thumbnailViewer thumbnail by thumbnail, I get error "out of memory".
In Windows Task Manager I see that memory usage of my application is very big.
Is there any way to optimize memory usage. For example, after display an image in imageViewer and go to next image, to realise resources for first image?
Best regards