View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005619 | JEDI VCL | 00 JVCL Components | public | 2011-07-15 11:39 | 2012-06-13 16:30 |
Reporter | Mad Cat | Assigned To | obones | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | suspended | ||
Product Version | 3.40 | ||||
Target Version | Fixed in Version | ||||
Summary | 0005619: TJvBackgroundClients memory leaks | ||||
Description | What happened: 1. I placed TJvBackground component on form. 2. First of all! On multiple form instances (on second instance and further more) it won't work (don't display background). 3. I've manually add TJvBackground.Clients in AfterConstruction/BeforeDestruction methods like this: class private field: FBackgroundAllocated: Boolean; // is it first form instance ctor: FBackgroundAllocated := JvBackground1.Clients.IndexOf(Self) <> -1; if not FBackgroundAllocated then JvBackground1.Clients.Add(Self); dtor: if not FBackgroundAllocated then JvBackground1.Clients.Remove(Self); 4. With "ReportMemoryLeaksOnShutdown := True;" in DEBUG mode I've got this message on programm quit: "An unexpected memory leak has occured. The unexpected small block leaks are: 21-28 bytes: TJvBackgroundClients x 1" ' x 1' - how much forms were created and destroyed over first form instance | ||||
Additional Information | When I changed code in "JvBackgrounds.pas" file in "procedure TJvBackgroundClients.Remove(Control: TWinControl);" method in Line 1601 from "Link.Release;" to "Link.Free;" reports of memory leak stopped. | ||||
Tags | JVCL, Memory leak | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-07-15 11:39 | Mad Cat | New Issue | |
2011-07-15 11:46 | Mad Cat | Tag Attached: JVCL | |
2011-07-15 11:46 | Mad Cat | Tag Attached: Memory leak | |
2011-09-21 11:55 | obones | Note Added: 0018933 | |
2011-09-21 11:55 | obones | Status | new => feedback |
2012-02-23 11:00 | obones | Note Added: 0019498 | |
2012-06-13 16:30 | obones | Note Added: 0019981 | |
2012-06-13 16:30 | obones | Status | feedback => resolved |
2012-06-13 16:30 | obones | Resolution | open => suspended |
2012-06-13 16:30 | obones | Assigned To | => obones |