Recent

Author Topic: ReadFromFile XLSX - memory leak after Free  (Read 1074 times)

vertnik

  • New Member
  • *
  • Posts: 34
ReadFromFile XLSX - memory leak after Free
« on: June 28, 2024, 12:48:41 pm »
Hi!

I found memory leak when reading attached XLSX file.

Code: Pascal  [Select][+][-]
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3.   MyWorkbook: TsWorkbook;
  4. begin
  5.   try
  6.     MyWorkbook := TsWorkbook.Create;
  7.     MyWorkbook.ReadFromFile('PA_06_03_1_2.xlsx',sfOOXML);
  8.   finally
  9.     MyWorkbook.Free;
  10.   end;
  11. end;

Br, Robert

wp

  • Hero Member
  • *****
  • Posts: 12459
Re: ReadFromFile XLSX - memory leak after Free
« Reply #1 on: June 28, 2024, 04:05:49 pm »
Thanks for reporting. Should be fixed in the new CCR version (not yet in OPM). Please test and report back.

vertnik

  • New Member
  • *
  • Posts: 34
Re: ReadFromFile XLSX - memory leak after Free
« Reply #2 on: June 29, 2024, 08:00:16 am »
Hi, wp!

Thank you for fixing this issue.
Tested and works.

Robert

 

TinyPortal © 2005-2018