Author Topic: Memory Leak  (Read 1634 times)

Sara

  • Guest
Memory Leak
« on: 23 September 2008, 12:17:20 »
Do though Memory Leak seems to be done when the PSD Format is preserved with 
Vampyre Imaging Library?
 
The system requirements is Delphi2007 & Vampyre Imaging Library Ver0.26.0. 


Projext Source Add ...  ReportMemoryLeaksOnShutdown := True;


procedure TForm1.Button2Click(Sender: TObject);
var Image : TMultiImage;
    Bitmap : TImagingBitmap;
begin
   Bitmap := TImagingBitmap.Create;
   Image := TMultiImage.Create;
   try
      Bitmap.Assign(Image1.Picture.Bitmap);
      Bitmap.AssignToImage(Image);
      Image.ConvertImages(ifR8G8B8);
      Image.SaveToFile('D:\test.psd'); //If this line doesn't exist, Leak is not done.
   finally
     Image.Free;
     Bitmap.Free;
   end;

end;

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 312
    • View Profile
    • Galfar's Homepage
Re: Memory Leak
« Reply #1 on: 23 September 2008, 17:46:14 »
Thanks for reporting this, leak was fixed.

Offline The_DuKe

  • Imaging User
  • *
  • Posts: 4
    • View Profile
Re: Memory Leak
« Reply #2 on: 9 August 2009, 20:11:11 »
   
This error occurs even in the version 2.62 Delphi 2007 and 2009 but not in version 24.2 which is modified for delphi 2009 http://galfar.vevb.net/imaging/smf/index.php/topic,267.0.html


Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 312
    • View Profile
    • Galfar's Homepage
Re: Memory Leak
« Reply #3 on: 17 August 2009, 19:48:24 »
The leak you posted is not caused by PSD, none of the classes listed in leak report are used there. In fact no instance of most of these classes is even created in Imaging. Leak is probably somewhere in your application.