The Daemon started working in Leopard too using your help (fork()).
Thanks for your help. But I am calling/initiating the executable file
from the Daemon but it is crashing and following is the crash report.
According to the stack trace in the crash report you posted, what
you're calling a "daemon" is actually a Cocoa application. It
therefore cannot simply fork, daemonize, etc. — it has a lot more
restrictions upon its runtime behavior.
Application Specific Information:
*** Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Error (1002) creating
CGSWindow'
This exception is thrown by AppKit when it cannot connect to the
WindowServer. Which it cannot if you're trying
Since your application is built using Cocoa, you need to ask your
question on the cocoa-dev mailing list. You will also be best off
describing exactly what the high-level goal is that you wish to
accomplish, rather than simply describing some of the low-level calls
you've used to try to accomplish your goal. The former is Rule #1
when it comes to getting help on the lists or IRC (if you happen to
ask on #macdev on irc.freenode.net or something).
Thanks.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden