C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5 | Cypress Semiconductor
C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5
A strange problem just cropped up for me after upgrading my application to .NET 4.5.
I have been using CyUSB.dll without a hitch for years. However, when I upgraded the rest of my app to 4.5 the constructor for USBDeviceList started throwing an Arithmetic Overflow Exception in unmanged code. This exception only seems to be thrown when running on Window 8 x64. (I am running W7 x64 as my dev. machine and it didn't pop up until testing on other platforms)
The root of this exception ssems to be your useage of ToInt32() in the API. However, I'm not sure why that doesn't break things running on Windows7x64 or with .NET 3.5 in W8. (During this whole process I did not rebuild the wrapper .ddl I wrote to interact with CyUSB.NET or change out the API .dll)
Is there a workaround for this?