Subj : pthread and C++ To : comp.programming.threads From : ChasW Date : Fri Aug 19 2005 05:25 pm Im sorry if this has been answered recently and I failed to see the posting. Is it not possible to access C++ object public members from pthreads? Im doing the following and getting exceptions: Using a global pointer to a dynamically allocated C++ object, i am passing the pointer to pthread_create. Within the body of the thread function, I cast the argument to my class type like this: void* threadServiceInput( void* arg ) { // cast arg to my object pointer myClassT* ptr = reinterpret_cast( arg ); But anything i access via ptr-> pops an exception. I don't recall having this problem before with POD structs, so for now, my best guess is an incompatibility with C++ types. Please advise, Charles .