Re: App failing when launched from Finder but not when launched from Project Builder ?
Re: App failing when launched from Finder but not when launched from Project Builder ?
- Subject: Re: App failing when launched from Finder but not when launched from Project Builder ?
- From: Thomas Deniau <email@hidden>
- Date: Tue, 04 Dec 2001 22:54:44 +0100
Le 3/12/01 22:19, Thomas Deniau disait :
>
When I launch my app from Project Builder, it works fine.
>
>
But when I launch it from the Finder, it unexpectedly quits with the message
>
:
>
Dec 3 20:19:11 cocoa lookupd[257]: msg_send failed ((ipc/send) invalid
>
destination port)
>
>
Any clue ?
>
>
Thanks.
Let me add some details :
The application which quits is a daemon which I launch via NSTask.
This daemon quits when the user types a letter. (Type a letter to exit).
And I dn't know why, but when I launch the app from the Finder, il always
get a in stdin, which makes it quit.
Fflush(stdin) and fpurge(stdin) don't help, getchar() always return when
the task launches.
Does a relationship exist between NSTask, DO, the error message I get, and
stdin ?
Thanks
--
Thomas Deniau