Le 4/12/01 18:39, Thomas Deniau disait :
> When I launch my app from Project Builder, it works fine.
>
> But when I launch it from the Finder, it quits with the following message in
> the Console :
> 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 don't know why, but when I launch the app from the Finder, I always
get a ÿ (y umlaut) in stdin, which makes it quit.
fflush(stdin) and fpurge(stdin) don't help, getchar() always return ÿ (y
umlaut) when
the task launches.
Does a relationship exist between NSTask, DO, the error message I get, and
stdin ?
Thanks
--
Thomas Deniau