Re: any help with [NSThread initWithTarget:selector:object]???
Re: any help with [NSThread initWithTarget:selector:object]???
- Subject: Re: any help with [NSThread initWithTarget:selector:object]???
- From: Ken Thomases <email@hidden>
- Date: Thu, 15 May 2008 00:26:10 -0500
On May 15, 2008, at 12:15 AM, Alex Esplin wrote:
Everything compiles, and when I run it, the Console tells me that
debugging completed normally. However, I'm getting nothing in the way
of output from any of the threads:
Is your main function waiting for the threads to complete, or is it
just exiting? When your main function returns, there's an implicit
exit() call and your whole process exits. There's no implicit
waiting for all threads to complete.
So, I suspect your threads are never getting a chance to run because
main is exiting.
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden