When I execute the following code snippet in a Linux environment, an out of memory error occurs.
System.Collections.Stack GraphicsStateStack = new System.Collections.Stack();
Bitmap bmp = new Bitmap(500,600);
Graphics gm = Graphics.FromImage(bmp);
for(int i=0; i<1000; ++i)
{
GraphicsStateStack.Push(gm.Save());
GraphicsState st = (GraphicsState)GraphicsStateStack.Pop();
gm.Restore(st);
st = null;
}
I consulted Microsoft and they told me I need to ask you.
The post: System.Drawing.Common 'Out of memory.'
Can you provide a solution or fix?
thank you very much!
When I execute the following code snippet in a Linux environment, an out of memory error occurs.
I consulted Microsoft and they told me I need to ask you. The post: System.Drawing.Common 'Out of memory.' Can you provide a solution or fix? thank you very much!