Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5
Moderator:
RSKV

Post Reply
Follow this topic



C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5

andy posted on 20 Feb 2013 10:18 AM PST
Senior Member
16 Forum Posts

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?




Re: C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5

Gayathri posted on 20 Feb 2013 09:56 PM PST
Cypress Employee
428 Forum Posts

 Hi,

 

Please migrate to the latest SuiteUSB 3.4.7 (http://www.cypress.com/?rID=34870), and check if the issue persists. If it still exists, please create a tech support case at www.cypress.com, so that one of our engineers can help you in fixing the issue.

 

Regards,

Gayathri



Re: C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5

andy posted on 21 Feb 2013 07:35 AM PST
Senior Member
16 Forum Posts

I have, thanks. 

I can get it to run if I force my application to target x86 architecture. However, that is suboptimal. No idea why it's only a problem in W8 and .NET > 3.5...

I will file a support ticket. 



Re: C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5

gabriel posted on 26 Feb 2013 02:15 PM PST
Member
8 Forum Posts

 I just upgraded to Windows 8 64bit and I have the same issue.

Have you found a workaround other than to target to x86?

I need a lot of ram, and x86 is a bottleneck for me.

Regards,

Gabriel Camiro



Re: C# API CyUSB.NET Throwing Exception After Upgrading Application to .NET 4.5

Gayathri posted on 27 Feb 2013 10:00 PM PST
Cypress Employee
428 Forum Posts

 Hi,

 

Can you please upgrade to Superspeed SuiteUSB (available from http://www.cypress.com/?rID=57990) and see if the issue persists. sorry that I missed out that compatoble OS for SuiteUSB3.4.7 are Windows 2000, XP, vista and Win7. Whereas Superspeed suite supports Win 8 beta. Please test and let us know if you seen any issues.

 

Regards,

Gayathri






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20