perhaps locking the network stream might help here. Look into threading your calls(if you are not doing this already) and lock the resonse stream using the MUTEX class or the SYNCLOCK statement - don't have any specific examples at hand but i might be able to rustle something up if you reckon this could be the way

Cheers