G
Guest
Hi,
There seems to be a memory leak problem in loading an image in .NET
I am trying to load up an image, which is 1MB in size on the disk. When I load up the image it expands out to atleast 25MB in memory. THIS cannot be right!!
The line of code I am using is:
"formImage = new Bitmap("Form.jpg");"
Does anyone know a fix around this?? Please help.
There seems to be a memory leak problem in loading an image in .NET
I am trying to load up an image, which is 1MB in size on the disk. When I load up the image it expands out to atleast 25MB in memory. THIS cannot be right!!
The line of code I am using is:
"formImage = new Bitmap("Form.jpg");"
Does anyone know a fix around this?? Please help.