T
Tony Hsieh
Hi,
When I try to load anything over 134 bitmaps of size 240x320 into
memory, I get an ArgumentException in the Bitmap constructor.
Anything up to 134 works great and once I try to load image 135 it
fails. The code that works fine is:
images = new Bitmap[photos.Count];
for (int i=0;i<134;i++)
{
images = new Bitmap(photos.fileName);
}
Once i change the 134 to anything greater than 134, I get the
exception. I find this very strange that is works fine up to a
certain number. When I look at Memory, I still have 20MB free even
after loading 134 images. Is there some sort of lock that is
preventing me from loading more images? Any help be greatly
appreciated. Thanks so much.
-Tony
When I try to load anything over 134 bitmaps of size 240x320 into
memory, I get an ArgumentException in the Bitmap constructor.
Anything up to 134 works great and once I try to load image 135 it
fails. The code that works fine is:
images = new Bitmap[photos.Count];
for (int i=0;i<134;i++)
{
images = new Bitmap(photos.fileName);
}
Once i change the 134 to anything greater than 134, I get the
exception. I find this very strange that is works fine up to a
certain number. When I look at Memory, I still have 20MB free even
after loading 134 images. Is there some sort of lock that is
preventing me from loading more images? Any help be greatly
appreciated. Thanks so much.
-Tony