From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
i have a vi that uses a net dll to access the usb port and read a stream of data but every time i run vi labview needs to close and in debug option shows an unhandled exception ('system.objectdisposedexception') occurred in labview.exe
the usb device is connected to the pc when this happens.
I'm not quite sure what is causing this error but I think is related to the dll itself. I found links related to the 'system.objectdisposedexception' when working with usb ports thay may be helpful.
If you have a print screen when you get the messege, that would be useful too. The messege says that the unhandled exception ocurred in labview.exe since you are calling your dll through LabVIEW. Howerver I think it has something to do with the dll itself, or the way you are calling it.
Hopefuly you find this information useful ! Greetings.