Reply
i declare the variable bytes as below:
dim bytes(client.receivebuffersize) as byte
tat's it. then i change the parameter to byte.length...it works immediately. strange!!!
Problem solved
I have solved the problem d. i set the size parameter of this function to bytes.Length. Then the program can run smoothly.
nwStream.Read(bytes, 0, bytes.length)
I jus try out all the possibilities and lucklily i made it. But i wonder why it cause the problem. Haha.....
i try to develop a client/server program. it works fine at the beginning. But when i try to request another data transfer, the exception warning pops up.
ArgumentOutOfRangeException
Here is the command
Dim bytes(client.receivebuffersize) as bytes
nwStream = client.getstream...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.