DataSocket Hangs When Cleaning Up Multiple Connections to LabVIEW Shared Variables in Measurement Studio Primary Software: Measurement Studio>>Professional Edition (Base Package)Primary Software Version: 8.0.1 Primary Software Fixed Version: 8.1 Secondary Software: LabWindows/CVI Development Systems>>Base Package
Problem: I have a Measurement Studio application in Visual Studio .NET 2003 or Visual Studio 2005 that accesses multiple LabVIEW shared variables using DataSocket.. Shared variables are called network variables in Measurement Studio and LabWindows/CVI. During cleanup, I loop through the DataSocket objects and disconnect and dispose them. When disposing the last DataSocket object, the application hangs on the last call to the Dispose() method. This behavior only occurs when I am using the PSP protocol. This behavior does not occur when using the DSTP protocol. How can I fix this?Solution: This issue was fixed in Measurement Studio 8.1. Similar behavior was seen with LabWindows/CVI when using the DS_DiscardObjHandle() function on multiple DataSocket handles. This has also been fixed in LabWindows/CVI 8.1.
If you are using earlier versions of these products, then you should separate the cleanup of the DataSocket objects into two loops. The first loop will disconnect all the DataSocket objects while the second loop will dispose the objects. Related Links: Attachments:
Report Date: 10/27/2006 Last Updated: 04/09/2007 Document ID: 3V2C56BK |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
