Re: Program crashes when executed normally, but runs w/o trouble in the Debugger
Re: Program crashes when executed normally, but runs w/o trouble in the Debugger
- Subject: Re: Program crashes when executed normally, but runs w/o trouble in the Debugger
- From: Frederick Cheung <email@hidden>
- Date: Fri, 1 Jul 2005 19:13:09 +0100
On 1 Jul 2005, at 19:09, Lorance, Ted wrote:
I appreciate everyone's suggestions, and I have implemented some
(see below). However, it doesn't explain to me why the program
works differently in the Debugger - and the situation has become
even more inexplicable than before. With the alterations
reproduced below, the program now functions completely normally
even in the Performance Tools (which were previously causing the
same crash as trying to load the datafile from normal execution).
However, now when the program is run normally, it decides that the
working directory is "/" instead of the correct value, and fails to
load the file. It does not crash - the error trap worked fine -
but it will not load the file, since the directory is wrong.
I was willing to believe that the Debugger was somehow altering the
program's perception of its location, but this latest development
still baffles me. If I knew why I was getting different results
from the different systems, I could probably solve this on my own.
The finder sets the working directory to /, xcode sets it to the
build folder IIRC (or something like that). Don't rely on the default
working directory.
Fred
_______________________________________________
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