[DUG] QuickReports 4.05 issues

Karl at Work karlreynolds at xtra.co.nz
Thu Jul 13 17:28:22 NZST 2006


> Last year we applied a patch to version 4.05 to fix memory leaks. This
> was just a matter of applying 
> 
> if QRPrinter <> nil then QRPrinter.free; 
> to 
> Destructor TCustomQuickRep.Destroy;
> in quickrpt.pas and recompiling .
> 
> Now, why I mention this is during debugging it seems to be 
> here that the
> error is caused when exiting the program.

Maybe your composite report object (or unit) is now also freeing it on
program exit?  Just a WAG, but try changing that line to:

  if QRPrinter <> nil then FreeAndNil(QRPrinter);

Worth a crack.

Cheers,
Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 1960 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20060713/efa44062/winmail.bin


More information about the Delphi mailing list