Re: Application fails to launch on certain machines, execle err=22
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.