Page 1 of 1

'System.ObjectDisposedException'

Posted: Sat Oct 22, 2022 4:52 am
by hammerstan
Can I please have assistance with the followng issue calling a PhidgetInterfaceKit 8/8/8.

Upon starting the PC with the PhidgetInterfaceKit 8/8/8 plugged into the USB port, I am getting the following exception error when calling .Open() :

Exception thrown: 'System.ObjectDisposedException' in System.Windows.Forms.dll

The only way to avoid the error is to disconnect the USB cable and reconnect.

My code is below (Win10 and Phidget Library 1.7.20210816)

Try
SpeedbreakLever = New VoltageInput()
SpeedbreakLever.DeviceSerialNumber = 510739
SpeedbreakLever.Channel = 0
SpeedbreakLever.Open()

Catch EX As PhidgetException

End Try