LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Reason for kTCP_WriteFailed error returned from ClientTCPWrite

Does anybody know what can cause the error code -kTCP_WriteFailed to be returned from a call to ClientTCPWrite?
 
I have a program which is continually calling this, a number of times per second, and every one or two days I get this error returned.
 
Any help would be much appreciated.
0 Kudos
Message 1 of 6
(3,786 Views)
How many times a second is this function being called? What version of CVI are you using?

After the error occurs does the program continue or do you have shut it down and restart?

Regards

Jon B
Applciations Engineer
NI UK & Ireland
0 Kudos
Message 2 of 6
(3,765 Views)
The function gets called about 3 times per second, and I'm using CVI 7.0.0.  The program does carry on after the error has occurred.
0 Kudos
Message 3 of 6
(3,764 Views)

If anyone has any suggestions about the reason for the unhelpful 'write failed' error, I would appreciate it.

TIA.

Ian.

0 Kudos
Message 4 of 6
(3,720 Views)
Hi Ian,

From talking to my colleagues the most rational explanation for this error would seem to be failure to write to the TCP stack itself rather than a problem actually sending data. Have you tried using the GetTCPSystemErrorString function to see if it provides any more information?

Also I would recomend checking to see if there are any updated drivers for your network chipset.

Regards

Jon
0 Kudos
Message 5 of 6
(3,712 Views)
No, I wasn't aware of the GetTCPSystemErrorString function.  I'll give that a go, and also check the chipset drivers.
 
Thanks.
 
Ian.
0 Kudos
Message 6 of 6
(3,704 Views)