View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003010 | JEDI VCL | 00 JVCL Components | public | 2005-05-31 12:23 | 2005-05-31 12:59 |
Reporter | anonymous | Assigned To | AHUser | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 | ||||
Target Version | Fixed in Version | 3.10 | |||
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. | ||||