Re: application quit right after launching
Re: application quit right after launching
- Subject: Re: application quit right after launching
- From: Ondra Cada <email@hidden>
- Date: Tue, 26 Feb 2002 05:02:26 +0100
Cesare,
>
>>>>> Cesare Marilungo (CM) wrote at Tue, 26 Feb 2002 01:23:33 +0100:
CM> So I don't
CM> know, for this environment, any other debugger than pb debugger, and
CM> still don't know how to use it from an app that is launched from the
CM> finder.
(i) You don't need that.
(ii) You really don't need that.
(iii) If you think you do need that, you are wrong.
(iv) If you need that anyway, just run gdb in Terminal and try "help attach".
CM> Also, I still don't know how to change the current working directory so
CM> that all subsequent fopen assume that the path is specified relatively
CM> to where the app resides.
man 2 chdir
Though, replacing the BSD stuff by Cocoa completely would be better. In that
case, read NSFileManager.html and NSBundle.html.
CM> So, shame on me for asking those stupid questions. I'll never do that
CM> again. :-(
If you specified more details where the problem is -- at the very least
saying that in gdb it works well -- probably you'd get a proper answer.
Searching archives you'd get it for sure, since the thing that application
launched by PB gets a different cwd than if launched from Finder was here
many times.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.