Memory leak when grouping with TAdvStringGrid

Hi there.


When I group one column  my program report a memory leak when it exits

---------------------------
Unexpected Memory Leak
---------------------------
An unexpected memory leak has occurred. The unexpected small block leaks are:

29 - 36 bytes: UnicodeString x 1
101 - 108 bytes: TCellProperties x 1

If I remove the grouping there are no leak reported.

I'm using Rio 10.3 and the grid version is 8.4.1.3.

Code I'm using.
There are only 2 records in my test data.

 x := 1;

grOversikt.Clear;
grOversikt.UnGroup;

grOversikt.RowCount := qHentData.RecordCount + 1;

while not qHentData.Eof do
begin
  grOversikt.Cells[1, x] := qHentData.FieldByName('SNavn').AsString;
  grOversikt.Cells[2, x] := qHentData.FieldByName('KNavn').AsString;
  grOversikt.Cells[3, x] := qHentData.FieldByName('Kaliber').AsString;
  grOversikt.Cells[4, x] := qHentData.FieldByName('SkytterID').AsString;

  qHentData.Next;

  Inc(x);
end;

qHentData.Close;
grOversikt.Group(2);

Regards
Eirik A.

It was retested with a default grid on the form with the code:


procedure TForm2.Button1Click(Sender: TObject);
begin
  AdvStringGrid1.Clear;
  AdvStringGrid1.UnGroup;

  AdvStringGrid1.RowCount := 10;
  AdvStringGrid1.RandomFill(false,5);

  AdvStringGrid1.Group(2);
end;

and there are no memory leaks in this test.
Do you use the latest version of the grid?
Hi and thanks for replying so quickly.

When I restarted RAD Studio the issue was gone.
I no longer have any report of a memory leak.

Regards
Eirik A.