Hi, It looks that g-soap has a "small" problem with windows console. Make a Windows console project. Main thread should wait for key press (scanf/getc). The second thread do something with soap_begin_recv (struct soap *soap) after the first thread waits for hey to be press. In the moment when _setmode(soap->recvfd, _O_BINARY) its call (soap- >recvfd = 0x0000) will hang until the key its press in the main thread.
BR