From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

win32 error call net dll

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.

 

 

 

 

 

0 Kudos
Message 1 of 2
(2,490 Views)

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.

Omar R.
Technical Support Manager
CLA | CTD
0 Kudos
Message 2 of 2
(2,398 Views)