public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* RE: pthread_join returned status
@ 2002-06-13 10:06 Bossom, John
  0 siblings, 0 replies; 2+ messages in thread
From: Bossom, John @ 2002-06-13 10:06 UTC (permalink / raw)
  To: 'Wayne Xin', pthreads-win32

This is your own coding failure... you are returning the address of
a variable on the stack!

-----Original Message-----
From: Wayne Xin [mailto:wxin1@yahoo.com]
Sent: June 13, 2002 12:17 PM
To: pthreads-win32@sources.redhat.com
Subject: 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

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* pthread_join returned status
@ 2002-06-13  9:16 Wayne Xin
  0 siblings, 0 replies; 2+ messages in thread
From: Wayne Xin @ 2002-06-13  9:16 UTC (permalink / raw)
  To: pthreads-win32

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-13 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-13 10:06 pthread_join returned status Bossom, John
  -- strict thread matches above, loose matches on Subject: below --
2002-06-13  9:16 Wayne Xin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).