Win32Exception: Not enough storage is available to process t

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

Win32Exception: Not enough storage is available to process t

Post by SorenBendtsen » Mon Sep 19, 2011 9:54 am

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)

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

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

Post by Sandra » Mon Sep 19, 2011 2:02 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

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

Post by SorenBendtsen » Thu Oct 13, 2011 5:14 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

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

Post by Narcís » Fri Oct 14, 2011 8:57 am

Hi Søren,

Yes, you can check it at the version info page too.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply