Reply to comment

the code works, but half the

the code works, but half the time it does one of the 2 things:

1) throws "Unable to read data from the transport connection: The connection was closed." at the line "iByteSize = streamRemote.Read(byteBuffer, 0, byteBuffer.Length);"

2) background worker seems to freeze, and eventually throw the same error.

If i go one line at a time via debug, it works like a charm... it works if display a messagebox... it waits for a while intull the user cliks ok, and the code works, but if it runs at full speed... it rarely finishes.

what should i do ?

Reply