Memory leak in the Surface Series
Posted: Wed Feb 26, 2014 12:28 pm
I found a memory leak in the Surface series, will compile test1 program and after start will check memory by TaskManager
Steema Software - Customer Support Forums
http://216.92.243.79/support/
Code: Select all
uses Chart, TeeGDIPlus, TeCanvas, TeeSurfa;
var Chart1: TChart;
Series1: TSurfaceSeries;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1:=TChart.Create(Self);
Chart1.Parent:=Self;
Chart1.Align:=alClient;
Chart1.View3D:=false;
Chart1.Legend.Visible:=false;
Series1:=Chart1.AddSeries(TSurfaceSeries) as TSurfaceSeries;
Series1.FillSampleValues(128);
RadioGroup1Click(Self);
end;
procedure TForm1.Timer1Timer(Sender: TObject);
var x, z: Integer;
begin
for x:=0 to 127 do
for z:=0 to 127 do
Series1.Value[x,z]:=random(512);
end;
procedure TForm1.RadioGroup1Click(Sender: TObject);
begin
case RadioGroup1.ItemIndex of
0: if Chart1.Canvas is TTeeCanvas3D then
Chart1.Canvas:=TGDIPlusCanvas.Create;
1: if Chart1.Canvas is TGDIPlusCanvas then
Chart1.Canvas:=TTeeCanvas3D.Create;
end;
end;
It has just been fixed for the next maintenance release, see David Berneda's comment.anauta2014 wrote:The TColorBand bug (my other report) also is absent in the previous version.