klcheah1984
New member
- Joined
- Nov 13, 2006
- Messages
- 3
- Programming Experience
- 1-3
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
nwstream.read(bytes, 0, cint(client.receivebuffersize))
This line got error. These command are written within a loop so that both client and server can constantly communicate. But i wonder what is the problem with my code.
ArgumentOutOfRangeException
Here is the command
Dim bytes(client.receivebuffersize) as bytes
nwStream = client.getstream
nwstream.read(bytes, 0, cint(client.receivebuffersize))
This line got error. These command are written within a loop so that both client and server can constantly communicate. But i wonder what is the problem with my code.