OutOfMemory Exception on loading a number of small images
Posted
by Pavel Pyhtin
on Stack Overflow
See other posts from Stack Overflow
or by Pavel Pyhtin
Published on 2010-04-02T20:25:36Z
Indexed on
2010/04/02
20:33 UTC
Read the original article
Hit count: 428
Hi
I'm trying to load about 600 small images into memory. Size of each image file is less then 2 KB (20 x 30). Thus all images are needs at most 5 MB in memory, even with additional information about size, format etc. But after 400th image Image.FromFile() throws OutOfMemory exception.
So, what's the problem?
© Stack Overflow or respective owner