FROM : Yann Disser
DATE : Wed May 14 15:48:53 2008
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"] writeToFile:@"debug.txt"
atomically:YES];
exit(0);
return NSApplicationMain(argc, (const char **) argv);
}
From within XCode this writes the file "debug.txt". From Finder it
doesn't. The same behaviour occurs with my other apps.
How can I debug my App from Finder (or Terminal) to see where it
crashes? (printf("hallo\n") doesn't work either)
Maybe someone has an idea why my App crashes when launches from Finder/
Terminal and runs perfectly from within XCode?
Thanks,
Yann
DATE : Wed May 14 15:48:53 2008
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"] writeToFile:@"debug.txt"
atomically:YES];
exit(0);
return NSApplicationMain(argc, (const char **) argv);
}
From within XCode this writes the file "debug.txt". From Finder it
doesn't. The same behaviour occurs with my other apps.
How can I debug my App from Finder (or Terminal) to see where it
crashes? (printf("hallo\n") doesn't work either)
Maybe someone has an idea why my App crashes when launches from Finder/
Terminal and runs perfectly from within XCode?
Thanks,
Yann
| Related mails | Author | Date |
|---|---|---|
| Yann Disser | May 14, 15:48 | |
| Stéphane | May 14, 15:55 | |
| Jean-Daniel Dupas | May 14, 16:20 | |
| Jens Alfke | May 14, 16:47 | |
| Yann Disser | May 14, 17:13 | |
| Andy Lee | May 14, 17:30 | |
| Stuart Malin | May 14, 19:56 | |
| Jean-Daniel Dupas | May 14, 20:55 | |
| Yann Disser | May 15, 18:42 | |
| Jean-Daniel Dupas | May 15, 18:48 | |
| Sherm Pendley | May 15, 18:56 | |
| Jens Alfke | May 15, 20:45 | |
| Douglas Davidson | May 15, 20:49 |






Cocoa mail archive

