Page 1 of 1

Win32Exception: Not enough storage is available to process t

Posted: Mon Sep 19, 2011 9:54 am
by 13047253
My application crashed, with an exception - I have included a stack trace of the exception, and it seems to originate from the TeeChart component.

The failure occurred during resize of a graph. I have not been able to reproduce the problem on a developer machine. The trace was submitted from a user.

The application uses TChart 3.5.3498.27367, running on Windows XP (sp 2 or sp3)

- Any idea what the problem can be? Is the machine out of memory? Unfortunately, I did not get a reading regarding the memory consumption when the application failed.

System.ComponentModel.Win32Exception: Not enough storage is available to process this command
at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)
at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)
at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)
at System.Drawing.BufferedGraphicsContext.Allocate(Graphics targetGraphics, Rectangle targetRectangle)
at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Re: Win32Exception: Not enough storage is available to process t

Posted: Mon Sep 19, 2011 2:02 pm
by 10050769
Hello SorenBendtsen,

I couldn't reproduce your exception using the builds 3.5.3498.27367 and 3.5.3575.14456 of TeeChart.Net venison3 and next simple code:

Code: Select all

   private void Form1_Load(object sender, EventArgs e)
        {
            Steema.TeeChart.TChart tChart1 = new Steema.TeeChart.TChart();
            this.Controls.Add(tChart1);
            tChart1.Dock = DockStyle.Fill;
            Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            line1.FillSampleValues();
        }
Could you please, check previous code if your exception using the code?

On the other hand, I suggest you that update your version 3 to last release build 3.5.3575.14456 that you can download here.

Thanks,

Re: Win32Exception: Not enough storage is available to process t

Posted: Thu Oct 13, 2011 5:14 pm
by 13047253
Hi Sandra,

I checked the download page, the latest version I could find is 3.5.3700.30575, can you confirm this is the latest version?

Thanks,
Søren

Re: Win32Exception: Not enough storage is available to process t

Posted: Fri Oct 14, 2011 8:57 am
by narcis
Hi Søren,

Yes, you can check it at the version info page too.