View Issue Details

IDProjectCategoryView StatusLast Update
0002924JEDI VCL00 JVCL Componentspublic2005-05-14 13:29
ReportermatthiusAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version3.00 
Target VersionFixed in Version 
Summary0002924: The object Image is not freed on the event OnGetImage in the JvLookup
DescriptionThe method Paint in the TJvDBLookupList, TJvDBLookupCombo does not free the Image variable which is assigned if the event OnGetImage assigns the Graphic variable.

It creates a memory leak...

You just have to free The Image variable after drawing it in the method paint...
TagsNo tags attached.

Activities

outchy

2005-05-07 08:05

administrator   ~0007115

I think you made a wrong usage of this event.
Creating an image everytime a component is painted is really slow, you have to create a list of images and return one of these images in the event handler.

obones

2005-05-14 13:29

administrator   ~0007158

I agree.
Further to this, it is a good programming principle for a method should not free the objects it is given, unless specifically stated otherwise.

Issue History

Date Modified Username Field Change
2005-05-02 00:30 matthius New Issue
2005-05-07 08:05 outchy Note Added: 0007115
2005-05-09 23:24 outchy Status new => feedback
2005-05-14 13:29 obones Status feedback => closed
2005-05-14 13:29 obones Note Added: 0007158