Exception: Floating Point Overflow

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MikeK
Newbie
Newbie
Posts: 4
Joined: Thu Feb 17, 2005 5:00 am

Exception: Floating Point Overflow

Post by MikeK » Tue Sep 12, 2006 3:11 pm

Hi,
I'm having a problem with floating point overflow exceptions with the TChart object. I think I have isolated why it's happening, but not how to avoid it. Our appilcation has a graph that updates periodically, and the floating point overflow seems to happen when zooming in/out (out mostly). If I turn off the updating then the problem seems to go away. The exception is thrown from several places, one of which is in TChartAxis.InternalCalcRange code.
Is there some lockout mechanism that I'm supposed to be using to avoid changing data in the middle of TChart's event handling?
Any pointers or directions to look would be greatly appreciated,
Mike

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

Post by Narcís » Tue Sep 12, 2006 3:13 pm

Hi Mike,

Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

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

MikeK
Newbie
Newbie
Posts: 4
Joined: Thu Feb 17, 2005 5:00 am

Exception: Floating Point Overflow

Post by MikeK » Tue Sep 12, 2006 3:31 pm

I'll put together an example program and post it as quick as I can. It also seems to only happen if there are multiple Vertical Axes with some of them set to "Custom" as well.

MikeK
Newbie
Newbie
Posts: 4
Joined: Thu Feb 17, 2005 5:00 am

Exception: Floating Point Overflow

Post by MikeK » Tue Sep 12, 2006 4:33 pm

Posted.

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Sep 14, 2006 11:06 am

Hi Mike,

using the following code in the OnUndoEvent solves the problem here :

Code: Select all

procedure TForm1.ChartUndoZoom(Sender: TObject);
begin
chart.Axes.Reset;
end;
Could you please check if it works fine for you ?

MikeK
Newbie
Newbie
Posts: 4
Joined: Thu Feb 17, 2005 5:00 am

Exception: Floating Point Overflow

Post by MikeK » Fri Sep 15, 2006 6:33 pm

That seems to fix the problem. Thanks so much for your help.

Post Reply