A
Anand Ganesh
Hi All,
I am trying to load 23 MB PNG file using the Bitmap Class, but I am getting
an out of memory exception.
My computer has 1 GB RAM and 1.5 GB Virtual Memory but still I am getting
this error. The Image file is not corrupted and I am able to see the Image
in the Windows Picture Viewer.
Any clues on how to load this Image in Memory?
Thanks
Anand Ganesh
Here is my code
try
{
Bitmap TheImage = new
Bitmap(@"C:\GV7TestService\SIDSpot\mrsiddecode_win\AhmedBIG.PNG") ;
bool ImageLoaded = true ;
TheImage.Dispose() ;
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString()) ;
}
I am trying to load 23 MB PNG file using the Bitmap Class, but I am getting
an out of memory exception.
My computer has 1 GB RAM and 1.5 GB Virtual Memory but still I am getting
this error. The Image file is not corrupted and I am able to see the Image
in the Windows Picture Viewer.
Any clues on how to load this Image in Memory?
Thanks
Anand Ganesh
Here is my code
try
{
Bitmap TheImage = new
Bitmap(@"C:\GV7TestService\SIDSpot\mrsiddecode_win\AhmedBIG.PNG") ;
bool ImageLoaded = true ;
TheImage.Dispose() ;
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString()) ;
}