• 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: Heath Raftery <email@hidden>
  • Date: Sat, 12 Jun 2004 10:14:49 +1000

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);

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? In that case... dunno! Check your executable settings for your project, and check the permissions on those bundles which don't work. execle crying invalid argument may simple be because dim3 Engine doesn't exist or is not marked exectable by the owner.

Heath
--
 _______________________________________________________
|   Heath Raftery                                       |
|   email@hidden                              |
|   *Life is what happens while you plan other things*  |
|                                        _\|/_          |
|_______________________________________m(. .)m_________|
_______________________________________________
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: Finlay Dobbie <email@hidden>
    • Re: Application fails to launch on certain machines, execle err=22
      • From: Michèle Garoche <email@hidden>
References: 
 >Application fails to launch on certain machines, execle err=22 (From: "email@hidden" <email@hidden>)

  • Prev by Date: Problems compiling login.tproj
  • Next by Date: Re: Application fails to launch on certain machines, execle err=22
  • Previous by thread: 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