you have to create your own data object class like below. ...::OnConnected(sockthread* client) { client->data = new MyClientData; .. } one thread has to have one MyClientData. this is the problem that mostly occured in socket programming. Anderson Sheen (exteide@gmail.com) The Extension IDE: http://www.exteide.com