Launch failed with error code -2857
Launch failed with error code -2857
- Subject: Launch failed with error code -2857
- From: "scott kaplan" <email@hidden>
- Date: Fri, 17 Dec 2004 03:45:04 +0000
I was told to submit my Project Builder questions to this list. If this is
the wrong place, please let me know where the right place is.
I am trying to debug a shared library in project builder from a CFM project.
I followed the instructions exactly of the following article
(http://lists.apple.com/archives/projectbuilder-users/2001/Feb/msg00210.html)
which is reiterated verbatim below.
When I performed step 6), I got the error "Launch failed with error code
-2857".
I have read every article in the project builder archives concerning how to
solve my problem and the solution did not appear to be there.
My Mac is running OS 10.2.X
Any help would be greatly appreciated,
Scott
-------------------------------------------------------------------------------------------------------------------------------------------
Yes, you should be able to do this. The key is to start the debugger on the
utility program which launches CFM programs; when your mach-o dylib gets
loaded, gdb should be able to let you debug it just fine.
Off the top of my head, here are the steps you need to do:
1) In PB, go to the Target editor for the target which builds your macho
dylib. Go the Executables tab. There should be no Executables for this
Target, because libraries can't be run by themselves.
2) Click the Add... button button to explicitly add and Exec for this
target. Navigate to the LaunchCFMApp program. In MacOSX 1.0 GM, its in:
/System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp
I forget where it is in Public Beta.
3) Now, in the Arguments tab (below the Executable you just added), click
the Add button. In the table view, add the path to the CFM app which loads
your macho dylib (you will have to type the path explicitly). For example,
if the app you want to run is IE: you would type:
"/Applications/Internet Explorer/Internet
Explorer.app/Contents/MacOS/Internet Explorer"
Note the use of quotes around the path because it has spaces in it.
4) Click the Run button, to just run the program and see that everything is
OK.
5) In the source for your dylib, set a breakpoint or two.
6) Click the Debug button. You will hit the breakpoint in your code.
-rab
-------------------------------------------------------------------------------------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden