System.OutOfMemoryException: Out of memory. at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y) at System.Drawing.Graphics.DrawImageUnscaled(Image image, Int32 x, Int32 y)
This Error is throwing even the physical memory is available. We have disposed the objects too.
Each and every tiff file may vary in width and size and we are copying the images from one location to another after doing some business logics like adding rectangles/ circles in the runtime and converting the final colored tiff images to black and white. In single hit we are copying more than 100 image using loop.
Is there any solution to over come this situation or am I doing any thing wrong?