• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
running out of NSPipes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: running out of NSPipes
      • From: Ken Thomases <email@hidden>
    • Re: running out of NSPipes
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: OpenGL in a Visual iTunes Plugin
  • Next by Date: Re: Mounting AFP Volume using Cocoa
  • Previous by thread: Re: Another graphical challenge...
  • Next by thread: Re: running out of NSPipes
  • Index(es):
    • Date
    • Thread