This may be hard for anyone to help, but I am noticing that even though I am certain I am only doing one astreams.write, the Server application on the other end is receiving the data twice.
I put a debugging statement (Log) immediately before the astreams.write. I know it is only executed once. However, if I change Log to a MsgBox, I only get the data once on the receiving end.
Has anyone ever experienced this? I am completely stumped.
It happened to me several times, I solved it by giving a unique ID to the transmissions so if the transmission comes a second time is ignored because it already received.
Don't use modal dialogs (msgbox) when using AsyncStreams. It may cause the receiving messages to be received out of order. I don't see how it can affect writings however start with removing the msgbox calls (the same is true for DoEvents).