Page 1 of 1

Memory Leak Using COM

Posted: Thu Mar 14, 2019 9:17 pm
by wsoul2k
I'm having memory leak using the TGdPicturePDF class with delphi

When using the interface _GdPicturePDF it is ok.... but we dont have events using interface

Simple code

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
var
  LicenseManager: TLicenseManager;
  opdf :TGdPicturePDF; //Class of TOleServer
begin

ReportMemoryLeaksOnShutdown:=true;

// turn off Floating point exceptions
Set8087CW($133f);

LicenseManager := TLicenseManager.Create(nil);
LicenseManager.RegisterKey('YOUR KEY HERE');

opdf:= TGdPicturePDF.Create(nil);
opdf.LoadFromFile('ANY PDF YOU WANT HERE',true);

opdf.OcrPages_3('*',0,'por','C:\GdPicture.NET 14\Redist\OCR\','',200,1,true);
opdf.SaveToFile('C:\TestPDF\resultPDF.pdf');
opdf.CloseDocument;
opdf.Dispose;

//releasing the PDF
FreeAndNil(opdf);

//releasing the Lincense
FreeAndNil(LicenseManager);

end;

when closing the application always get
---------------------------
Unexpected Memory Leak
---------------------------
An unexpected memory leak has occurred. The unexpected small block leaks are:
13 - 20 bytes: TServerEventDispatch x 1

anyone can help me out

Re: Memory Leak Using COM

Posted: Mon Apr 01, 2019 1:04 pm
by Gabriela
Hello,

Thank you for reporting this. We have limited capabilities to assist you in Delphi, but we will try to investigate this in some reasonable time frame. If anyone is experiencing such an issue, please let us know. Any further details or information will be very useful. Thank you for understandings.

Re: Memory Leak Using COM

Posted: Thu Jul 25, 2019 1:38 pm
by Gabriela
Hi,

Please try our latest release 14.1.29 (https://www.gdpicture.com/download-gdpicture/).
We have improved COM edition a lot in the past releases, we offer backward/forward compatibility starting version 14.0.25, together with improved support for Delphi. Kindly let us know if you will run into any issues.