'System.ObjectDisposedException'

Supporting Visual Studio on Windows
Post Reply
hammerstan
Fresh meat
Posts: 1
Joined: Sat Nov 12, 2011 6:44 pm
Contact:

'System.ObjectDisposedException'

Post 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
Attachments
Code.txt
(66.56 KiB) Downloaded 3432 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests