Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003010 [JEDI VCL] 00 JVCL Components minor always 2005-05-31 12:23 2005-05-31 12:59
Reporter anonymous View Status public  
Assigned To AHUser
Priority normal Resolution fixed  
Status resolved   Product Version 3.00
Summary 0003010: Memory Leak with TJvDbImage
Description I 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;
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007368)
AHUser (developer)
2005-05-31 12:59

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
2005-09-21 05:57 pawelgoluch Issue Monitored: pawelgoluch


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker