I have this problem that I can't work out why it is doing it.
I've got a client - server program. The client sends an request to the Server, which in returns it queries an access database and save the output as a file. Which it will then send to the client.
It looks as if it saves the file correctly with out any corruption.
My problem is sometimes when I run it, some information gets corrupted (I think that it leaves some of the data off the end of the sending string)
Any suggestions on how to improve my code and make it more robust is extremly welcome
I've stripped out the code that I beleive is causing the problem. The code has some comments in it so you know why and what it is doing.