running out of NSPipes
running out of NSPipes
- Subject: running out of NSPipes
- From: justin webster <email@hidden>
- Date: Fri, 18 Apr 2008 21:23:40 +1200
so I see at least one other thread on this topic but no real solution.
the situation is:
using NSTask to run a shell command and using the return.
all the NSTask stuff is in a separate function which gets called
repeatedly from a loop.
works great until I run out out NSPipes - about 248 iterations before
[NSPipe pipe] returns nil.
I have the function wrapped in an autorelease pool and have tried
explicitly allocating and releasing the NSPipe.
the [myTask waitUntilExit] solution mentioned in another thread made
no difference.
does anyone understand what causes this limitaion?
is there another way to get a return from the shell?
system() does what I need, as often as you like, except I can't get
the return value.
cheers,
justin webster
_______________________________________________
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