• 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
NSTask -launch Freezes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask -launch Freezes


  • Subject: NSTask -launch Freezes
  • From: Seth Willits <email@hidden>
  • Date: Wed, 18 Jan 2006 14:46:53 -0800

I can't figure this out, and neither can anyone in #macdev on freenode. I'm simply spawning an NSTask:


NSTask * task = [NSTask launchedTaskWithLaunchPath:@"/usr/bin/wc" arguments:[NSArray arrayWithObjects:@"-l", @"/Users/seth/Desktop/ blah.txt", nil]];


Which works from the command line and from main() in a new project, but in my own app, it freezes while launching:



#0	0xffff85d8 in objc_msgSend_rtp
#1	0x900318a4 in _malloc_fork_prepare
#2	0x900315ec in fork
#3	0x928d44b4 in -[NSConcreteTask launchWithDictionary:]
#4	0x928e8ca0 in +[NSTask launchedTaskWithLaunchPath:arguments:]


I have no idea what to do here. :(

Any help would be appreciated.



--
Seth Willits

_______________________________________________
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


  • Follow-Ups:
    • Re: NSTask -launch Freezes
      • From: Camillo Lugaresi <email@hidden>
  • Prev by Date: NSPopupButton content binding and multiple selections
  • Next by Date: Re: CORE DATA: derived values from several entities and managed object instances ??
  • Previous by thread: NSPopupButton content binding and multiple selections
  • Next by thread: Re: NSTask -launch Freezes
  • Index(es):
    • Date
    • Thread