This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

pthread_join returned status


Win2k is complaining about my memory access violation
when I try to get the status returned from
pthread_join:

int* status;
int result;

pthread_join(tid, (void**) &status);
result = *status; <-- this line seems causing problem

At the other end, I always put a status at
pthread_exit:

int status = 3;
pthread_exit(&status);

Did anybody see similar problem?

-Wayne


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]