Series null values gives an overflow exception

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
yair
Newbie
Newbie
Posts: 15
Joined: Wed Jan 16, 2008 12:00 am

Series null values gives an overflow exception

Post by yair » Sun May 16, 2010 5:26 pm

Hi

I am using Teechart version 3.5.3700.30575

I am getting an overflow exception when trying to display Series in the chart with some of their values set to null (using the SetNull function)
I am using:
Series.TreatNulls = TreatNullsStyle.DoNotPaint;
using the Line series type

Here is the exception message:
System.OverflowException: Overflow error.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.FillEllipse(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
at System.Drawing.Graphics.FillEllipse(Brush brush, Rectangle rect)
at Steema.TeeChart.Drawing.Graphics3DGdiPlus.Ellipse(Int32 x1, Int32 y1, Int32 x2, Int32 y2)
at Steema.TeeChart.Styles.SeriesPointer.Draw(Graphics3D g, Boolean is3D, Int32 px, Int32 py, Int32 tmpHoriz, Int32 tmpVert, Color colorValue, PointerStyles aStyle)
at Steema.TeeChart.Styles.SeriesPointer.Draw(Int32 px, Int32 py, Color colorValue, PointerStyles aStyle)
at Steema.TeeChart.Styles.CustomPoint.DrawPointer(Int32 aX, Int32 aY, Color aColor, Int32 valueIndex)
at Steema.TeeChart.Styles.Custom.DrawPoint(Boolean drawOldPointer, Int32 valueIndex, Int32 x, Int32 y)
at Steema.TeeChart.Styles.Custom.DrawValue(Int32 valueIndex)
at Steema.TeeChart.Styles.Series.Draw()
at Steema.TeeChart.Styles.Custom.Draw()
at Steema.TeeChart.Styles.Series.DrawSeries()
at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw(Graphics g)
at Steema.TeeChart.TChart.Draw(Graphics g)
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)

Please help ASAP.

Thanks,
Yair

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

Re: Series null values gives an overflow exception

Post by Narcís » Mon May 17, 2010 9:34 am

Hi Yair,

Can you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.
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