Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurment Studio 7.0 Data Socket Connect issue

I am using Visual Basic .NET 2003 and Measurement Studio 7.0 to make several DDCS connections to an OPC Server.  In stepping through the code, I have found the the connects fail to return to my calling code and it locks up my thread.  It is not consistent in where it fails.  I make about 30 connections by looping through URLs.  It fails at many different places in the loop.  Also, the connections appear to hang even after I close Visual Studio, and I am limited the next time I try and run through my code to 50 - x number of connections.  Are there know issues with trying to make multiple connections in this way?  Will upgrading my Measurement Studio to a new version help?
0 Kudos
Message 1 of 2
(3,153 Views)
I am assuming that you are setting up an array of DataSocket objects to handle each connection.  Are you simply connecting to each DataSocket in the for loop?  Is it hanging in the middle of the loop, or does the code continue to execute?

There is a known issue with deleting DataSocket connections.  With an array of DataSocket objects, if one object is disposed of before all the sockets are disconnected, then you will experience an application crash or hang.

Would you mind posting your section of code that you use to connect to the DataSockets?

Regards,

Tyler Tigue
0 Kudos
Message 2 of 2
(3,141 Views)