Hi,
I create a certain amount of CustomAxes in my TChart, e.g. by using:
Code: Select all
LAxis := TChartAxis.Create(MyChart)
However, it's not clear to me whether I need to destroy (Free) these axes myself or is the parent chart (MyChart) taking care of this?
In my Project Source I have
Code: Select all
ReportMemoryLeaksOnShutdown := true
If I don't explicitely destroy the CustomAxes, no leaks are reported. However, I cannot find anything in the documentation. Can you please advise on the correct approach to remove (destroy) all CustomAxes? Is there something like:
or should it be
Code: Select all
for ii := 0 to MyChart.CustomAxes.Count - 1 do
MyChart.CustomAxes[ii].Free;
Thanks,
Mark