Laura Arhire wrote: > if (pthread_create (&thr, NULL, print_message_function, (void *) > &data) != 0) > printf("Warning, create did not work for thread #%d\n", > i);fflush(stdout); > else > { > Sleep(1000); > ClientSocket *client = SocketFactory::new_client_socket(SSL, > (char *) "127.0.0.1", TEST_PORT); > > if (client->connect()) > client->disconnect(); > > delete client; > > socket->shutdown(); > pthread_join(thr, NULL); > } > > delete socket; > } > > }
Well, this code extract is obvious nonsense. The 'else' statement cannot attach to an 'fflush(stdout);' statement. If this is your actual code, it's surprising it compiled. When you get errors creating threads, the most common cause is that you created threads and failed to either detach or join them (you must do one or the other or you will leak threads). It's possible that your entire 'else' block is not even running. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org