Problem using a TTimer to Refresh
Posted: Mon Sep 18, 2006 12:34 pm
Hi,
I use D2005 and TeeChartPro v7.07.
I use a TTimer to Refresh 2 charts in a Form (a frame actually). In the procedure of the TTimer I have a function "RefreshData" which does a calculation and give new datas for the series. I've got 2 TFastLineSeries for one chart and 4 for the other chart, all in the same Frame.
I tried to use chart.autorepaint := False, do the calculation, chart.AutoRepaint := True and chart.Repaint, but I still have this problem. I wonder if I must do the same for the TFastLineSeries (repaint).
After a long time, I've got a message error which come from the API Graphics. The exception EOutOfRessouces raised.
I saw a topic around my problem :
http://www.teechart.net/support/viewto ... t=tcanvas
Is it possible to read the article talking about real-time plotting because the link doesn't work ? Thanks.
And thank you if you have any suggestion.
I use D2005 and TeeChartPro v7.07.
I use a TTimer to Refresh 2 charts in a Form (a frame actually). In the procedure of the TTimer I have a function "RefreshData" which does a calculation and give new datas for the series. I've got 2 TFastLineSeries for one chart and 4 for the other chart, all in the same Frame.
I tried to use chart.autorepaint := False, do the calculation, chart.AutoRepaint := True and chart.Repaint, but I still have this problem. I wonder if I must do the same for the TFastLineSeries (repaint).
After a long time, I've got a message error which come from the API Graphics. The exception EOutOfRessouces raised.
I saw a topic around my problem :
http://www.teechart.net/support/viewto ... t=tcanvas
Is it possible to read the article talking about real-time plotting because the link doesn't work ? Thanks.
And thank you if you have any suggestion.