Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

OutOfMemoryException loading image

$
0
0

Hello all!

I hope you can help me. I've a  use drawing control in order to show an image. The image is about 12000x3500 pixeles. The first time it load the image, I don't have any problem but if I try to load the image several times "Graphics.DrawImage(...)" throw an Out of Memory Exception.

I tried to do a System.GC.Collect() before to open the image but it doesn't  solve the problem.

Can someone help me? Do you know where I can check the virtual memory available? Can it be the problem?

Thanks in advance!




Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>