G
Guest
When trying to load a large image on a Pocket PC 2003, after Disposing a large
image and also after using GC.Collect(), I get an exception with "Exception"
as the
message, no other information, and it's not an OutofMemory Exception. I did
not have this problem on Pocket PC 2002 eventhough it had less memory.
//Scenario 1
Image img;
img = Bitmap.FromFile("file1.jpg");
//show the image
img.Dispose();
GC.Collect();
//the next line causes an exception with message "Exception"
img = Bitmap.FromFile("file2.jpg");
//Scenario 2
Image img;
img = Bitmap.FromFile("file2.jpg");
//show the image
img.Dispose();
GC.Collect();
//the next line causes an exception
img = Bitmap.FromFile("file1.jpg");
Any idea what I can do ?
thank you
awni
image and also after using GC.Collect(), I get an exception with "Exception"
as the
message, no other information, and it's not an OutofMemory Exception. I did
not have this problem on Pocket PC 2002 eventhough it had less memory.
//Scenario 1
Image img;
img = Bitmap.FromFile("file1.jpg");
//show the image
img.Dispose();
GC.Collect();
//the next line causes an exception with message "Exception"
img = Bitmap.FromFile("file2.jpg");
//Scenario 2
Image img;
img = Bitmap.FromFile("file2.jpg");
//show the image
img.Dispose();
GC.Collect();
//the next line causes an exception
img = Bitmap.FromFile("file1.jpg");
Any idea what I can do ?
thank you
awni