Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006518 [JEDI VCL] 00 JVCL Components minor always 2016-07-21 15:11 2016-07-21 15:11
Reporter andreykorol View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0006518: TJvHidDeviceController - missed OnDeviceDataError handler setup
Description TJvHidDevice.CtlCreate constructor is missing setting Controller.OnDeviceDataError to OnDataError. So, in this way TJvHidDeviceReadThread.DoDataError will never call Device.FDataError (user event).
fix patch:
-------------------------------------------------------------------------
diff --git a/JvHidControllerClass.pas b/JvHidControllerClass.pas
index b1f43b2..9264a6e 100644
--- a/JvHidControllerClass.pas
+++ b/JvHidControllerClass.pas
@@ -807,6 +807,7 @@ begin
   FDataThread := nil;
   OnData := Controller.OnDeviceData;
   OnUnplug := Controller.OnDeviceUnplug;
+ OnDataError := Controller.OnDeviceDataError;
 
   FHidFileHandle := CreateFile(PChar(PnPInfo.DevicePath), GENERIC_READ or GENERIC_WRITE,
     FILE_SHARE_READ or FILE_SHARE_WRITE, nil, OPEN_EXISTING, 0, 0);
-------------------------------------------------------------------------
Additional Information
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2016-07-21 15:11 andreykorol New Issue


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker