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: Michèle Garoche <email@hidden>
- Date: Sat, 12 Jun 2004 07:13:29 +0200
Le 12 juin 2004, ` 2:14, Heath Raftery a icrit :
> Hi Brian,
>
> On 12/06/2004, at 12:38 AM, email@hidden wrote:
>
>> This one is driving me crazy. My xcode-compiled application fails to
>> launch on a couple of machines (fine on the vast bulk of them.) The
>> error from the console is:
>>
>> 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);
I'd have thought:
execle("/Path/To/App", "CommandToBeExecuted", "Argument1ToCommand,...,
NULL", "VarEnv1,...,NULL");
At least that's how I execute it.
For example:
execle(FINK_PATH, "fink", "update-all", NULL, environ);
Where:
#define FINK_PATH "/sw/bin/fink"
extern char **environ;
If you want more examples and another explanation on the subject, I've
written some notes here:
<http://micmacfr.homeunix.org/progsysdet/progsys03.shtml>
Search for format of exec primitives at about the middle of the file
and then:
<http://micmacfr.homeunix.org/progsysdet/progsys04.shtml.en>
Michhle
<http://micmacfr.homeunix.org>
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
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.