View Issue Details

IDProjectCategoryView StatusLast Update
0003010JEDI VCL00 JVCL Componentspublic2005-05-31 12:59
ReporteranonymousAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0003010: Memory Leak with TJvDbImage
DescriptionI have a simple Jpeg Slide show which cycles (on a timer) through images saved in a FireBird SQL database. The problem is that the program does not release the memory used for the images. For example each time an image is loaded the memory usage (as seen in the Windows Task manager) of the program increase by roughly the size of the image. Even when the list is re-started from the begining, the memory usage keep increasing. Does so untill windows runs out of memory.

This memory is only release when the program closes.

(Thanx for a wonderfull set of components)
Additional Information// GetRecords is a procedure that runs a SQL query to get the data records

Procedure ResScreenSaver;
var
  ResScrnSaver: TResScrnSaver;
begin
  Application.CreateForm(TResScrnSaver,ResScrnSaver);
  try
    GetRecords(data.SDS_Pictures,'*','CATEGORY = ''ScreenSaver''','CODE');
    ResScrnSaver.ShowModal;
  finally
    freeandnil(ResScrnSaver);
  end;
end;

procedure TResScrnSaver.Timer1Timer(Sender: TObject);
begin
  Data.SDS_Pictures.Next;
  if Data.SDS_Pictures.Eof then Data.SDS_Pictures.First;
end;
TagsNo tags attached.

Activities

AHUser

2005-05-31 12:59

developer   ~0007368

Fixed in CVS.

The CreateGraphic function always created a new TGraphic that was assigned to the Picture.Graphic which itself created a new TGraphic and assigns the speicified TGraphic.

Issue History

Date Modified Username Field Change
2005-05-31 12:23 anonymous New Issue
2005-05-31 12:59 AHUser Status new => resolved
2005-05-31 12:59 AHUser Resolution open => fixed
2005-05-31 12:59 AHUser Assigned To => AHUser
2005-05-31 12:59 AHUser Note Added: 0007368