RegisterProcess failed (error = -50)
RegisterProcess failed (error = -50)
- Subject: RegisterProcess failed (error = -50)
- From: Paul Kim <email@hidden>
- Date: Sun, 4 Feb 2007 15:02:31 -0500
Hi all,
I was getting this in my logs.
RegisterProcess failed (error = -50)
I traced it to a call from my agent program trying to call a method
on NSWorkspace. The agent itself is called by a small program that
just sets the priority and does a sysctl and then does an execvp. The
execution chain is like this:
LoginItem or pref pane => faceless/background app => priority setting
program => agent
Now, in this case, I was able to "fix" it by taking the little glue
program out of the chain and sticking its code in the agent program
itself.
I saw this post:
http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00676.html
The glue program is doing an execvp and any "Apple stuff" is
happening after that so it's unclear to me why I was getting the
error. Also, I am using NSTask to launch it.
Even though it seems to be working now, I was wondering if someone
could explain what is going on. The glue program is used in other
places where I start binaries that aren't mine so it is still needed.
I want to make sure I just didn't suppress the problem or move it
somewhere else or that it won't come back to haunt me in a different
way.
Any insight greatly appreciated.
Thanks,
Paul Kim
------------------------------------
Chief Noodler - Noodlesoft
email@hidden
http://www.noodlesoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden