On Mon, Sep 13, 2010 at 3:05 AM, aaron smith <beingthexemplaryli...@gmail.com> wrote: > Thanks for pointing that I can't use high level frameworks in a child. > I'll set up everything I need for the execvp call before the actual > fork. > > AH! I totally missed that I need to use an int to store the child exit > status info. > > Here's a version that works now.. > > http://pastebin.org/860040
You really shouldn't use the result of -[NSString UTF8String] past the lifetime of the object itself. Either do a strcpy real quick, or use -[NSString maximumLengthOfBytesUsingEncoding:] with -[NSString getCString:maxLength:encoding:] _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com