G
Guest
Dear all,
I have some codes as follows and it always return Exception even if the file
exists. I don't where is the error. Could you tell what wrongs about the
codes.
Also, how large of Image can be created in .Net Compact Framework. When I
have try to create a Image in 240 * 11000, it returns Out of Memory
Exception. However, the Pocket PC contains over 11M memory. How can I do?
Thanks.
***********************************************************
string imagePath = "001.jpg";
try
{
if ( System.IO.File.Exists(imagePath) )
{
Bitmap bmp = new Bitmap(imagePath);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
Result:
Exception
***********************************************************
I have some codes as follows and it always return Exception even if the file
exists. I don't where is the error. Could you tell what wrongs about the
codes.
Also, how large of Image can be created in .Net Compact Framework. When I
have try to create a Image in 240 * 11000, it returns Out of Memory
Exception. However, the Pocket PC contains over 11M memory. How can I do?
Thanks.
***********************************************************
string imagePath = "001.jpg";
try
{
if ( System.IO.File.Exists(imagePath) )
{
Bitmap bmp = new Bitmap(imagePath);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
Result:
Exception
***********************************************************