annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

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 Compliments
Message 1 sur 3
2 682 Visites

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 Compliments
Message 2 sur 3
2 661 Visites

Sorry, you are correct. It restarts at 1.

0 Compliments
Message 3 sur 3
2 658 Visites