Showing results for 
Search instead for 
Did you mean: 

Issue with ConverstionHandle when using ConnectToTCPServer.

I am working on software to request data from several sensors every 2 minutes or longer. I am using ConnectToTCPServer to make the connection and then DisconnectFromTCPServer once I have the data. I am seeing the ConversationHandle increase in value each time I re-Connect. After some time, the value surpasses 1000(decimal) and then starts back at 0. That in itself isn't a problem, but when the numbering restarts at 0, many times it fails connect. Since I am talking to 6 sensors, I sometimes fail all 6 connections. After that, it is fine.

Is there a way to manually reset or release the ConversationHandle number so that I can minimize the connection failures?

Thanks, Mike

0 Kudos
Message 1 of 3

Since zero is a valid conversation handle, I would rather examine the code on your side to try understanding if it behaves differently in that case.

Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3

Sorry, you are correct. It restarts at 1.

0 Kudos
Message 3 of 3