Re: -2856 error code
Re: -2856 error code
- Subject: Re: -2856 error code
- From: Rod Eldridge <email@hidden>
- Date: Tue, 22 Apr 2003 20:03:05 CDT
On Tue, 22 Apr 2003 10:05:45 PDT,
email@hidden (Simon Fraser) wrote:
>
This error is in the Code Fragment Manager error range. Are you trying
>
to launch a CFM application?
>
>
Simon
Sly Upah orgionally posted this question for me, but I'll answer
Simon's question now that I'm also on the cocoa-dev list. I'm trying to
launch a REALbasic application. However, I also tried to launch the
TextEdit application and got the same launch failed error.
Here's the actual background information of what I'm trying to do. I've
modified the CUPS backend program "lpd" to launch my REALbasic
application. When the modified CUPS lpd backend program sees a print
server name of "NetPrint", the lpd backend will create a "control" file
in /var/tmp (call it xxxxxx.netprint, but it is acutally a unique file)
that contains inforamtion like user, print queue, copies, and the file
to be printed. It then launches the REALbasic application via the system
call "open /Applications/Utilities/NetPrint /var/tmp/xxxxxx.netprint".
My REALbasic program (i.e. NetPrint) then reads the
/var/tmp/xxxxxx.netprint file and also asks the user for additional
information, such as a grant (i.e. account) number to bill the output
to and then calls a "special" lpr program that obtains kerberos tickets
and sends the print to the actual print server. This print server is
sent information such as the user, grant and the kerberos tickets and
the file to be printed. This all worked really well in 10.2.4 when the
file ownership of the REALbasic application was system:admin. Under
10.2.5, I get the launch failed error.
--
Rod Eldridge
Technical Services
Academic Information Technologies
Iowa State University
>
On Tuesday, April 22, 2003, at 09:08 am, Sly Upah wrote:
>
>
> I have a c program that does a system("open -a /Application/my.app
>
> myfile") call. This program worked correctly under 10.2.4 -- it
>
> launched "my.app" and "my.app" opened the file "myfile". Under 10.2.5,
>
> I'm getting the error:
>
>
>
> Launch failed with error code -2856
>
>
>
> The AppleCare Knowledge Base Document 9804
>
> "Mac OS System Error Codes: -299 to -5553"
>
>
>
> does not list this error code...
>
>
>
> Can anybody clarify what this error code means?
>
> Thanks.
>
> _______________________________________________
>
> cocoa-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.