Indeed! This code need finalize() now because heaptrc detect memory leak:
procedure TForm1.Button1Click(Sender: TObject);
var f: TMyRec;
begin
FillChar(f, SizeOf(TMyRec), 0);
f.Field1 := 123;
f.Field2 := 'abc'+IntToStr(f.Field1);
push(@f);
system.Finalize(f);
FillChar(f, SizeOf(TMyRe
On 15/03/2016 22:14, Krzysztof wrote:
Hi,
Should I (and in which case) call Finalize() when
using FillChar/FillByte? Heaptrc unit is not detecting any memory
leak. For example:
type
PMyRec = ^TMyRec;
TMyRec = record
Field1: Int64;
Field2: String;
Field3: Int64;
Field4: St
Hi,
Should I (and in which case) call Finalize() when using FillChar/FillByte?
Heaptrc unit is not detecting any memory leak. For example:
type
PMyRec = ^TMyRec;
TMyRec = record
Field1: Int64;
Field2: String;
Field3: Int64;
Field4: String;
Field5: Boolean;
end;
procedur