Delphi XE2 Update 4 memory leakage report as following:
21 - 28 bytes: TXc12Selections x 1, TXc12PivotSelections x 1
45 - 52 bytes: TXc12Pane x 1
69 - 76 bytes: TXc12SheetView x 1
Version: 5.20.10
Sample Code:
procedure TForm6.Button1Click(Sender: TObject);
var x : TXLSReadWriteII5;
begin
x := TXLSReadWriteII5.Create(self);
try
x.Version := xvExcel97;
x.Filename:= 'test.xls';
x.Sheets[0].Name := 'Sheet1';
x.Sheets[0].Clear;
x.Sheets[0].AsString[0, 0] := 'Col1';
x.Sheets[0].AsString[1, 0] := 'Col2';
x.Write;
finally
x.Free;
end;
end;
Memory Leakage
Re: Memory Leakage
Hello
This will be fixed in the next update.
The problem is "x.Sheets[0].Clear;" You don't have to call Clear when creating a new object.
This will be fixed in the next update.
The problem is "x.Sheets[0].Clear;" You don't have to call Clear when creating a new object.
Lars Arvidsson, Axolot Data