PrintPreview Resource Leak

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

PrintPreview Resource Leak

Postby MeW » 14/06/16 07:22

In the application I'm using an obscure resource leak occurred. I could not figure out, why my code would be wrong after having been 'Print Previewed'. Until I researched the Preview.pas itself. The TThumbnailPreview destructor does not free the LargeImages. When I added an extra line of code, the resource leaks were gone. So please fix the following:
Code: Select all
destructor TThumbnailPreview.Destroy;
begin
  LargeImages.Free; // <<==-- Add this line to prevent obscure resource leaks
  FPaperViewOptions.Free;
  Page.Free;
  inherited Destroy;
end;
MeW
Active Member
Active Member
 
Posts: 8
Joined: 17/02/05 18:34
Location: Netherlands

Re: PrintPreview Resource Leak

Postby sh17 » 06/07/16 13:18

sh17
Active Member
Active Member
 
Posts: 7
Joined: 03/09/13 11:38

Re: PrintPreview Resource Leak

Postby MeW » 06/07/16 20:59

(Y)
MeW
Active Member
Active Member
 
Posts: 8
Joined: 17/02/05 18:34
Location: Netherlands


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest