• 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
Re: Application fails to launch on certain machines, execle err=22
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application fails to launch on certain machines, execle err=22


  • Subject: Re: Application fails to launch on certain machines, execle err=22
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 12 Jun 2004 11:53:02 +0100

On 12 Jun 2004, at 01:14, Heath Raftery wrote:

Jun 10 23:00:06 localhost WindowServer[441]: ERROR! execle(/Users/dave/Desktop/dim3b10d2/dim3 Engine.app/Contents/MacOS/dim3 Engine) returned, err=22

The man page for execle is a little cryptic, but it does seem to require that the executable name is followed by a list of arguments terminated by a NULL and a list of environment variables terminated by a NULL. So I think the minimal way to call it would be:


execle("/Path/To/App", NULL, NULL);

But I'm not sure about that. I'm confused about why there are no quotation marks in the error, but there are spaces in the filepath. I'd say you should check the way you call execle, and ensure you follow the correct pattern, but I'm guessing you don't actually explicitly call execle?

Look again at the log excerpt - it's the WindowServer that's calling execle() (the final step of a call to LaunchServices requesting an app launch, I expect). Weirdly, I have a vague recollection of seeing this before, but I honestly can't remember what the problem was.


 -- Finlay
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Application fails to launch on certain machines, execle err=22
      • From: Brian Barnes <email@hidden>
References: 
 >Application fails to launch on certain machines, execle err=22 (From: "email@hidden" <email@hidden>)
 >Re: Application fails to launch on certain machines, execle err=22 (From: Heath Raftery <email@hidden>)

  • Prev by Date: Re: Availability of xTools 1.2 CD - when?
  • Next by Date: Re: Availability of xTools 1.2 CD - when?
  • Previous by thread: Re: Application fails to launch on certain machines, execle err=22
  • Next by thread: Re: Application fails to launch on certain machines, execle err=22
  • Index(es):
    • Date
    • Thread