02-24-2015 07:37 AM
Hi everyone,
I am working in an TCP server - client structure. Here multiple clients connect with the server. Using the TCP listener, I club 3 client TCP connectionID into an array.
When I pass this Array of TCP connectionID into subvi, put a for loop and extracting every single connectionID to read or write data, it is throwing an Error 1. But when I do the same thing inside the Main VI, both read and write operation is working perfectly. Couldn't find the way to solve.
Solutions welcome.
02-24-2015 08:07 AM
Can you attach your VIs or a screenshot of them?
I have implemented multiple client architectures with passing the TCP connection ID into SubVIs which are called asynchronously and I haven't had any problems with the references being invalid inside the SubVI.
02-24-2015 10:04 AM
02-25-2015 12:35 AM
Extremely sorry to every one. Its just a whacky mistake. Every single time, I am sending the excessive index value (like array size is 3, but am sending 4 to index array) to an index array. So it returns the empty element from the array, that does the error.
Thanks sam_sharp and nathand for your suggestions.