LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ServerTCPWrite times out after the application has been running for a day or two

Hi all,
 
Our application registers itself as a TCP server and once a client is connected, status data (about 300 bytes) will be sent back to the client at a rate of once a second.
This part works fine for a day or two and then I will get a -8 error back from the ServerTCPWrite function call which indicates that the write failed. The
client side seems to process the data in a timely manner so I don't think the receive buffer is filled. Has anyone seen this problem before?
 
Regards,
LabWindows_newbie
 
0 Kudos
Message 1 of 2
(2,833 Views)
Just a suggestion: have you tried to call GetTCPSystemErrorString when you get the error? According to documentation there is a chance that returned string is more descriptive that the enumerated type.
 
I have personally never received such an error: one of our application is proven working for months using regularly ServerTCPWrite function; it is to be noted though that our write rate is slower (1 write per minute or so).


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 2
(2,826 Views)