Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
6387 00 JVCL Components block always 2015-03-01 16:30 2015-09-21 17:47
sender  
AHUser  
normal  
resolved Daily / GIT  
fixed  
none    
none 3.49  
0006387: JvHidControllerClass compile failed with Delphi 7
JvHidControllerClass compile failed with Delphi 7:
Error: JvHidControllerClass.pas(1661): Invalid typecast

line 1661:
Create(AOwner, TJvHidDeviceCreateError(nil)); // work around compiler issue with method overloading and method pointers

The compiler of Delphi 7 doesn't allow cast nil to "procedure of object".
Issue History
2015-03-01 16:30 sender New Issue
2015-03-01 16:55 sender Note Added: 0021145
2015-03-11 19:39 AHUser Note Added: 0021149
2015-03-11 19:39 AHUser Status new => resolved
2015-03-11 19:39 AHUser Fixed in Version => Daily / GIT
2015-03-11 19:39 AHUser Resolution open => fixed
2015-03-11 19:39 AHUser Assigned To => AHUser
2015-09-21 17:47 obones Fixed in Version Daily / GIT => 3.49

Notes
(0021145)
sender   
2015-03-01 16:55   
here is my simple solution to this issue:

constructor TJvHidDeviceController.Create(AOwner: TComponent);
var
  a: TJvHidDeviceCreateError;
  b: TNotifyEvent;
begin
  a := nil;
  b := nil;
  TJvHidDeviceController.Create(AOwner, a, b);
end;
(0021149)
AHUser   
2015-03-11 19:39   
This was fixed in 61374bf805c827e53cd75163cc6ebbe1487df45a