HIDDManager.GetDetails(): cast exeption (1 viewing) 1 Guest
|
TOPIC: HIDDManager.GetDetails(): cast exeption
|
Uwbe25
|
|
HIDDManager.GetDetails(): cast exeption 2 Years, 6 Months ago
|
|
|
When the HIDLib used in C#/Visual Studio 2008 the function HIDManager.GetDetails() fails with the exception
System.InvalidCastException: Unable to cast object of type 'System.Collections.ObjectModel.ReadOnlyCollection`1[BlueNinjaSoftware.HIDLib.HIDDevice]' to type 'System.Collections.Generic.List`1[BlueNinjaSoftware.HIDLib.HIDDevice]'.
at BlueNinjaSoftware.HIDLib.HIDManagement.GetDevices() in C:Blue Ninja SoftwareCodeCommonLibrariesHIDLibsrcHIDManagement.vb:line 31
no matter what the left side of the assignment is (List<HIDDevice> devices, var devices, IList<HIDDevice> )
|
|
|
|
Logged
|
|
|
|
Uwbe25
|
|
Re:HIDDManager.GetDetails(): cast exeption 2 Years, 6 Months ago
|
|
|
sorry, the function in question is HIDManager.GetDevices()....
|
|
|
|
Logged
|
|
|
|
|
|