View Issue Details

IDProjectCategoryView StatusLast Update
0005926JEDI VCLMiscellanouspublic2015-09-21 17:47
ReporterMark-Assigned Toobones 
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.49 
Summary0005926: TJvHidDeviceController memory leak.

I am not sure on the version. It came from JVCL345CompleteJCL231-Build4197

I have a TJvHidDeviceController on a window. When a USB device is plugged in,
TJvHidDevice.Create is called 6 times and TJvHidDevice.Destroy is called 4 times.

All is good.

The window is still open.

When I unplug the device TJvHidDevice.Destroy is not called 2 times causing the memory leak when the program terminates.

I have not been able to locate a call to free the TJvHidDevice objects. They appear to be dangling. They are not in the FList of TJvHidDeviceController.

In TJvHidDeviceController.DeviceChange they are removed from the FList but the objects are not freed. I do not see where they had been or are added to another list.

Thanks for any help.


Additional Information
cHidControllerClassVersion = '1.0.35';

UnitVersioning: TUnitVersionInfo = (
 RCSfile: '$URL: $';
    Revision: '$Revision: 13102 $';
    Date: '$Date: 2011-09-07 07:46:34 +0200 (mer., 07 sept. 2011) $';
    LogPath: 'JVCL\run'
TagsNo tags attached.



2012-07-01 15:27

reporter   ~0020045

I made a change and so far all is good.

In JvHidControllerClass, TJvHidDeviceController.DeviceChange;

I changed:

if not HidDev.IsCheckedOut then


if not HidDev.IsCheckedOut then


2013-01-15 15:20

administrator   ~0020345

This is now fixed in SVN

Issue History

Date Modified Username Field Change
2012-06-29 19:24 Mark- New Issue
2012-06-29 19:24 Mark- IDE version => RAD Studio 2007
2012-07-01 15:27 Mark- Note Added: 0020045
2012-07-17 08:48 outchy Project JEDI Code Library => JEDI VCL
2013-01-15 15:20 obones Note Added: 0020345
2013-01-15 15:20 obones Status new => resolved
2013-01-15 15:20 obones Fixed in Version => Daily / SVN
2013-01-15 15:20 obones Resolution open => fixed
2013-01-15 15:20 obones Assigned To => obones
2015-09-21 17:47 obones Fixed in Version Daily / GIT => 3.49