Memory Leak Using COM

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
wsoul2k
Posts: 3
Joined: Thu Mar 14, 2019 9:10 pm

Memory Leak Using COM

Post by wsoul2k » Thu Mar 14, 2019 9:17 pm

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

Gabriela
Posts: 436
Joined: Wed Nov 22, 2017 9:52 am

Re: Memory Leak Using COM

Post by Gabriela » Mon Apr 01, 2019 1:04 pm

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.

Gabriela
Posts: 436
Joined: Wed Nov 22, 2017 9:52 am

Re: Memory Leak Using COM

Post by Gabriela » Thu Jul 25, 2019 1:38 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest