Re: Launching Cocoa Application externally

2008-05-15 Thread Douglas Davidson
On May 15, 2008, at 11:45 AM, Jens Alfke wrote: The problem was that I access a file (without proper error- handling; I will add that now :-)). The default working directory is the main-bundle path when run from within XCode and it is "/" when run from Finder. I repaired this by adding [[

Re: Launching Cocoa Application externally

2008-05-15 Thread Jens Alfke
On 15 May '08, at 9:42 AM, Yann Disser wrote: The problem was that I access a file (without proper error-handling; I will add that now :-)). The default working directory is the main- bundle path when run from within XCode and it is "/" when run from Finder. I repaired this by adding [[NS

Re: Launching Cocoa Application externally

2008-05-15 Thread Sherm Pendley
On Thu, May 15, 2008 at 12:42 PM, Yann Disser <[EMAIL PROTECTED]> wrote: > Thank you all for your help. I managed to fix the problem by going over > your suggestions. > > The problem was that I access a file (without proper error-handling; I will > add that now :-)). The default working directory

Re: Launching Cocoa Application externally

2008-05-15 Thread Jean-Daniel Dupas
Le 15 mai 08 à 18:42, Yann Disser a écrit : Thank you all for your help. I managed to fix the problem by going over your suggestions. The problem was that I access a file (without proper error-handling; I will add that now :-)). The default working directory is the main- bundle path when

Re: Launching Cocoa Application externally

2008-05-15 Thread Yann Disser
Thank you all for your help. I managed to fix the problem by going over your suggestions. The problem was that I access a file (without proper error-handling; I will add that now :-)). The default working directory is the main- bundle path when run from within XCode and it is "/" when run fr

Re: Launching Cocoa Application externally (Yann Disser)

2008-05-14 Thread Hamish Allan
Please stop copying Yann Disser's name into the subject line! It breaks up threads unnecessarily. Hamish ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Launching Cocoa Application externally (Yann Disser)

2008-05-14 Thread Peter Hudson
Here's a few suggestions a) Check your settings in project ( as in project -> edit project settings ) Check that your target platform and lib selection is OK. Ensure that you are not zero linking. b) Do a completely clean build - i.e. close the project and drop the build directory into

Re: Launching Cocoa Application externally

2008-05-14 Thread Jean-Daniel Dupas
Le 14 mai 08 à 19:56, Stuart Malin a écrit : On May 14, 2008, at 5:55 AM, [EMAIL PROTECTED] wrote: The App runs fine in gdb and even writes the output file. Still the same error (crash and no output written) when running it with "open MyApp.app". Yann Have you built a deployment (Rel

Re: Launching Cocoa Application externally

2008-05-14 Thread Stuart Malin
On May 14, 2008, at 5:55 AM, [EMAIL PROTECTED] wrote: The App runs fine in gdb and even writes the output file. Still the same error (crash and no output written) when running it with "open MyApp.app". Yann Have you built a deployment (Release) version? Unless you have done so, a Debu

Re: Launching Cocoa Application externally

2008-05-14 Thread Andy Lee
Is MyApp.app a Release build or a Debug build? --Andy On May 14, 2008, at 11:13 AM, Yann Disser wrote: The App runs fine in gdb and even writes the output file. Still the same error (crash and no output written) when running it with "open MyApp.app". Yann On 14. May 2008, at 16:47,

Re: Launching Cocoa Application externally

2008-05-14 Thread Yann Disser
The App runs fine in gdb and even writes the output file. Still the same error (crash and no output written) when running it with "open MyApp.app". Yann On 14. May 2008, at 16:47, Jens Alfke wrote: On 14 May '08, at 6:48 AM, Yann Disser wrote: How can I debug my App from Finder (or

Re: Launching Cocoa Application externally

2008-05-14 Thread Jens Alfke
On 14 May '08, at 6:48 AM, Yann Disser wrote: How can I debug my App from Finder (or Terminal) to see where it crashes? (printf("hallo\n") doesn't work either) From a shell, enter "gdb MyApp.app", then "run". I would suspect a dyld error, like a framework/library not found. The Finder / L

Re: Launching Cocoa Application externally

2008-05-14 Thread Jean-Daniel Dupas
You can read the crash log to see what goes wrong. (/Applications/ Utilities/Console.app) Le 14 mai 08 à 15:48, Yann Disser a écrit : When I launch my Cocoa application from Finder instead of from within XCode, it reports a crash. All my other Projects seem to work well from outside XCode.

Re: Launching Cocoa Application externally

2008-05-14 Thread Stéphane
On May 14, 2008, at 3:48 PM, Yann Disser wrote: When I launch my Cocoa application from Finder instead of from within XCode, it reports a crash. All my other Projects seem to work well from outside XCode... I tried to debug my App by changing the main-function to int main(int argc, char *

Launching Cocoa Application externally

2008-05-14 Thread Yann Disser
When I launch my Cocoa application from Finder instead of from within XCode, it reports a crash. All my other Projects seem to work well from outside XCode... I tried to debug my App by changing the main-function to int main(int argc, char *argv[]) { [[NSString stringWithString:@"hier"] wr