Hi,
I have written two programs client and server. The general idea is to make it a simple communicator on a local network to send three types of data string, 2 dimensional matrix and image + null message. For now the server sends data and the client receives. Ideally the two programs should be able to both receive and send data. However, I am most concerned about error 91 (Error 91 occurred at Variant To Data in CLIENT.vi). This may be related to the fact that when a timeout occurs, data is sent that the client does not know how to handle. How to maintain communication between the two applications? Probably this is something trivial that I can't see. I would appreciate your help. Programs are in this zip file.
tcp_communicator.zip