TCP Client Hangs ( But not in debug )

Blitz3D Forums/Blitz3D Programming/TCP Client Hangs ( But not in debug )

Kinda weird this one. I'm plugging away slowly at my multiplayer code and everything's coming along nicely so far. I'm testing on localhost so I have two copies of the game running in debug mode to make sure everything's good, and it seems to be fine.
If I make an exe and do the same thing, the client hangs when it tries to join the server. Now I know OpenTCPStream can cause hangs like that if there is no response, but this is quite a long hang, and I'm not entirely sure why the server doesn't respond. In debug mode it does. Now obviously the server can't have focus if the client has it, but don't B3d programs continue to run anyway?

They ought to be happy to multitask because there are delays to ensure that there is plenty of cpu time to go round. Except obviously that I can't put a delay in the middle of a call to OpenTCPStream. Is that the problem? Should i just ignore it as long as it runs ok in debug mode?