C# OPC-DA disconnect from server

398 Views Asked by At

Hi I have following code to connect to the OPC server, which is working fine.

server = new Opc.Da.Server(fact, null);
server.Url = new Opc.URL(URL);
server.Connect();

Now when I use following code to disconnect from the server my code get stucks, I assume it is waiting for the disconnect, but it seems like this is never happening.

server.Disconnect();

For this I used the opc.da library from OPCFoundation.

0

There are 0 best solutions below