7 Replies Latest reply on Apr 9, 2010 4:17 PM by userc_45021

    A first chance exception of type 'System.ArgumentNullException' occurred in mscorlib.dll

              We are using a CY7C68013A USB controller in a couple of our product. The PC software currently is using a third party driver solution and we would like to convert to using the Cypress Suite USB 3.4.1 libraries. The application currently is written in C++ so the first go at it I was trying to use the CYAPI.lib. It compiles fine, but if there is a (Cypress) device (with our VID,PID) connected to the USB port, the statement:   
      USBDevice = new CCyUSBDevice(NULL);   
      throws an exception. If no device is connected, it does not throw the exception.   
      I then decided to try a C# solution, and started with the Control Center example. Again, if a device is connected the following statement:   
      usbDevices = new USBDeviceList(DeviceMask);   
      will generate 8-10 messages in the output window:   
      A first chance exception of type 'System.ArgumentNullException' occurred in mscorlib.dll   
      If no device is connected, no exceptions.   
      I am not sure where to look next, any suggestions.