View Issue Details

IDProjectCategoryView StatusLast Update
0003010JEDI VCL00 JVCL Componentspublic2005-05-31 12:59
ReporteranonymousAssigned ToAHUser 
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;
  ResScrnSaver: TResScrnSaver;
    GetRecords(data.SDS_Pictures,'*','CATEGORY = ''ScreenSaver''','CODE');

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



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