View Issue Details

IDProjectCategoryView StatusLast Update
0001488JEDI VCL00 JVCL Componentspublic2004-03-22 21:57
ReporteranonymousAssigned Touser72 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version 
Target VersionFixed in Version 
Summary0001488: Memory Leak GDI
DescriptionWhen clicking a JVXPcheckbox a GDI object get's lost, resulting in an Memory Leak.
Additional InformationBug Fixed here at my side:
See commented Lines:

procedure JvXPColorizeBitmap(Bitmap: TBitmap; const AColor: TColor);
var
  ColorMap: TBitmap;
  Rect: TRect;
begin

  Rect := Bounds(0, 0, Bitmap.Width, Bitmap.Height);
  ColorMap := TBitmap.Create;
  try
    ColorMap.Assign(Bitmap);
// Bitmap.Dormant;
// Bitmap.FreeImage;
     with ColorMap.Canvas do begin
      Brush.Color := AColor;
      BrushCopy(Rect, Bitmap, Rect, clBlack);
     end;
    Bitmap.Assign(ColorMap);
// ColorMap.ReleaseHandle;
  finally
    ColorMap.Free;
  end;
end;
TagsNo tags attached.

Activities

user72

2004-03-18 01:55

  ~0003375

What program did you use to detect the memory leak? To me it looks OK as is and could be a false alarm

user72

2004-03-18 06:27

  ~0003377

I just tested with AQTime 3 and it doesn't report any leaks

user72

2004-03-22 21:57

  ~0003437

Can't reproduce it with neither AQTime3 nor Sleuth QA 2

Issue History

Date Modified Username Field Change
2004-03-17 13:33 anonymous New Issue
2004-03-18 01:55 user72 Note Added: 0003375
2004-03-18 01:55 user72 Status new => feedback
2004-03-18 06:27 user72 Note Added: 0003377
2004-03-22 21:57 user72 Status feedback => resolved
2004-03-22 21:57 user72 Resolution open => unable to reproduce
2004-03-22 21:57 user72 Assigned To => user72
2004-03-22 21:57 user72 Note Added: 0003437