Hi, internet search reveals that AfxSocketInit() should be called in every thread. I am using CSocket for listening, sending, receiving in 2 worker threads and main thread. The program works most of the time whether I call it or not. Moreover, it is actually more stable without it. Any thoughts ? Thanks.