System.ArithmeticException: Overflow or underflow in the ...

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Terry
Newbie
Newbie
Posts: 9
Joined: Wed Jun 22, 2005 4:00 am
Location: California

System.ArithmeticException: Overflow or underflow in the ...

Post by Terry » Thu Oct 05, 2006 10:51 pm

I have seen three posts for this issue recently but have not really seen a difinitive answer of what it going on and how to fix. I have a large complicated measurement system that uses TeeChart .Net for charts.

Are there any more ideas? Any fixes in TeeChart? I am running V2, the July build.

In general it does well but some users intermittantly get the following exception:

System.ArithmeticException: Overflow or underflow in the arithmetic operation.

at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)

at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit)

at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style)

at Steema.TeeChart.Drawing.ChartFont.get_DrawingFont()

at Steema.TeeChart.Drawing.Graphics3DGdiPlus.MeasureString(ChartFont f, String text)

at Steema.TeeChart.Drawing.Graphics3D.TextHeight(String text)

at Steema.TeeChart.Drawing.Graphics3D.get_FontHeight()

at Steema.TeeChart.Title.Draw(Graphics3D g, Rectangle& rect)

at Steema.TeeChart.Title.DoDraw(Graphics3D g, Rectangle& rect, Boolean CustomOnly)

at Steema.TeeChart.Chart.DrawTitleFoot(Rectangle& rect, Boolean CustomOnly)

at Steema.TeeChart.Chart.DrawTitlesAndLegend(Graphics g, Rectangle& tmp, Boolean BeforeSeries)

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.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

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

Post by Narcís » Fri Oct 06, 2006 7:58 am

Hi Terry,

Could you plaese post the messages you are speaking about? It would also be very helpful if you attach an example we can run "as-is" or post some code to reproduce the problem here. You can post your files at news://www.steema.net/steema.public.attachments newsgroups.

BTW: A couple of weeks ago we made available a new maintenance release and another release is imminent.
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