Hi there,
I would like to know if the Chart parameter passed in the LoadChartFromFile function is deleted and re-created (with a new) within this function or if it is in the same memory address. It seems to be the same but I am not sure.
Thanks a lot.
LoadChartFromFile
Hi.
Not exactly. Only the chart series and tools are freed. Then the object is repopulated with data. Here is the relevant code from TeeStore.pas implementation:
Not exactly. Only the chart series and tools are freed. Then the object is repopulated with data. Here is the relevant code from TeeStore.pas implementation:
Code: Select all
Procedure LoadChartFromStreamCheck( Var AChart:TCustomChart;
AStream:TStream;
ACheckError:TProcTeeCheckError=nil;
TryReadData:Boolean=True);
{ remove all child Series and Tools }
AChart.FreeAllSeries;
AChart.Tools.Clear;
// ...
Marjan Slatinek,
http://www.steema.com
http://www.steema.com