Delphi 10.4 中的 FMX.ListView.TListView 在重新加载时无法释放内存? 这会清除列表,但不会释放内存:-(
if ListView1.Items.Count>0 then
begin
ListView1.Items.Clear;
{or alternatively try in loop}
i:=ListView1.Items.Count;
j := i-1 downto 0 do
begin
ListView1.Items.AppearanceItem[j].Bitmap:=nil;
ListView1.Items.Delete(j);
end;
end;