View Issue Details

IDProjectCategoryView StatusLast Update
0005619JEDI VCL00 JVCL Componentspublic2012-06-13 16:30
ReporterMad CatAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionsuspended 
Product Version3.40 
Target VersionFixed in Version 
Summary0005619: TJvBackgroundClients memory leaks
DescriptionWhat 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 InformationWhen 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.
TagsJVCL, Memory leak

Activities

obones

2011-09-21 11:55

administrator   ~0018933

Please provide the zipped sources of a sample application showing this

obones

2012-02-23 11:00

administrator   ~0019498

We really need a demo project to test this

obones

2012-06-13 16:30

administrator   ~0019981

No news, suspending the issue

Issue History

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