Subj : seg foult into threading aplication To : comp.programming.threads From : AlterX Date : Wed Jul 13 2005 10:28 pm Hi folks, my scene is this: - one C++ class with 2 friend class for thread call (pthread on linux) one for fork thread (void * (*)(void *)) and last one for clearup thread using pthread_key_create(). - two extern "C" functions described above - Member thread Function with two params: null-terminated array string and num of threads to generate. So..if i run function above, with one thread, my prog (send multiple data throught socket) does very well!!(if pthread_key_create(array, NULL)) if i run another, (pthread_key_create(array, ClearUpFunc)), does well, but seg foult generated at the end... if i run function with two threads, my function, after some operations, after pthread_create(), generated seg foult and doesn't work!! If pthread_key_create goes in seg foult with pointer function, pthread_create goes in same way?!?! How my app doesn't work with two or more threads?!?! Sorry for bad english Thanks .