03-27-2015 03:14 PM
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.
04-01-2015 02:46 PM
Hello kind2011
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.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8a1825d2-c84b-4620-91e7-3934a4d47330/c-serial...
http://www.windows-tech.info/13/fe0140a738639d20.php
http://www.databaseforum.info/25/523638.aspx
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.