Re: NSTask hangs if there is no running run loop
Re: NSTask hangs if there is no running run loop
- Subject: Re: NSTask hangs if there is no running run loop
- From: James Bucanek <email@hidden>
- Date: Wed, 11 May 2005 17:04:22 -0700
James Bucanek wrote on Wednesday, May 11, 2005:
>I've been starting an external process using NSTask. It has been working just
>fine, until today when I moved it to a separate thread.
On further review, I appear to have a different problem; I moved my NSTask back to the main thread and it still hangs. I've also run into an old bug in Xcode 1.5 that would cause a process interruption if you launch an NSTask then immediately read the results of its stdout pipe while running it under the debugger. However, the hack to work around this in Xcode 1.5 (adding some trivial delay, like 0.2 seconds) doesn't work anymore in Xcode 2.0.
I'm now pretty sure that I'm overflowing the NSPipe that is reading the results of the tool. I'll restructure my wait loop and see if that fixes it.
Sorry for the interruption...
--
James Bucanek <mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden