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
Exception: Floating Point Overflow
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
Exception: Floating Point Overflow
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.
Hi Mike,
using the following code in the OnUndoEvent solves the problem here :
Could you please check if it works fine for you ?
using the following code in the OnUndoEvent solves the problem here :
Code: Select all
procedure TForm1.ChartUndoZoom(Sender: TObject);
begin
chart.Axes.Reset;
end;
Pep Jorge
http://support.steema.com
http://support.steema.com
Exception: Floating Point Overflow
That seems to fix the problem. Thanks so much for your help.