Hi all!
There is a bug in TCustomDBChart.CheckNewDataSource method. The method creates new TDBChartDataSource every time it called and adds it as Item to IDataSources list. Searching the input parameter ADataSet always fail.
So my application using memory growth all the time, because I call frequently the CheckDataSource method for all 15 Series in my Chart.
I use 7.04 version of TeeChart. Is there any quick way you may suggest me to fix the problem?
Thanks a lot
Aleksey
Bug in TCustomDBChart.CheckNewDataSource
-
- Newbie
- Posts: 3
- Joined: Thu Jul 07, 2005 4:00 am
Hi Aleksey,
yes, it seems there's a bug (the ADadaSet is not recognized). I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases. In meantime a workaround coud be to do :
just before the creation of the TDBChartDataSource.
tmpDataSource:=TDBChartDataSource.Create(nil); { 5.02 }
yes, it seems there's a bug (the ADadaSet is not recognized). I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases. In meantime a workaround coud be to do :
Code: Select all
for I := 0 to IDataSources.Count - 1 do
if TDBChartDataSource(IDataSources[i]).Dataset = ADataset then
Exit;
tmpDataSource:=TDBChartDataSource.Create(nil); { 5.02 }
Pep Jorge
http://support.steema.com
http://support.steema.com