• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Program crashes when executed normally, but runs w/o trouble in the Debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >RE: Program crashes when executed normally, but runs w/o trouble in the Debugger (From: "Lorance, Ted" <email@hidden>)

  • Prev by Date: RE: Program crashes when executed normally, but runs w/o trouble in the Debugger
  • Next by Date: Re: Program crashes when executed normally, but runs w/o trouble in the Debugger
  • Previous by thread: RE: Program crashes when executed normally, but runs w/o trouble in the Debugger
  • Next by thread: Re: Program crashes when executed normally, but runs w/o trouble in the Debugger
  • Index(es):
    • Date
    • Thread