an error occurs when trying the detect function using system.net.sockets as show in below.
LabVIEW: A .NET exception occurred in an external assembly. For information about correcting this error, copy the following exception (in bold), and search the Microsoft Developer Network (MSDN) Web site or the Web for a possible explanation.
System.ArgumentNullException in Untitled.vi
OS: Win7 Enterprise X64, the same code works on Win XP OS with no such error.
Solved! Go to Solution.
as the MSDN say, the parameter of shutdown is "SocketShutdown how". It include send, recieve and both. The error occured in shutdown? your pic didn`t show shutdown.
it will call some property and method, and result the error:
Error creating instance of Socket in assembly System.Net.Sockets.Socket, System, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089, (System.Net.Sockets.SocketException: 以一种访问权限不允许的方式做了一个访问套接字的尝试。) <append><b>System.Net.Sockets.SocketException</b> in Untitled 4.vi
as it failed to create the constructor, that is why it also show "shutdown how"
I have solved this issue by run the code as administrator.
anyway, thx for your response!