• 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: Booleans not being set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Booleans not being set


  • Subject: Re: Booleans not being set
  • From: Jonas Maebe <email@hidden>
  • Date: Sat, 7 Feb 2009 11:31:11 +0100


On 07 Feb 2009, at 10:43, Erg Consultant wrote:

I am using Xcode 2.5. The code works fine on 10.5/10.4 on Intel machines and 10.5 on PowerPC machines. However, when I run this code on 10.4.11/PowerPC, I get all kinds of weird behavior. This routine returns true no matter what I do - even if the network cable is unplugged and there is no net connection.

Does it actually return true, or do you think it returns true because the debugger says so? What does a printf() say?


Even when my return code is set to false it still returns true. I step through it in the debugger and result is always set to YES even on the first line. Futhermore, many of my locals don't show up at all in the debugger or the debugger doesn't execute their assignments on entry to the routine. Some it does, some it skips. The logic in the routine works because I've tested it on all the other machines mentioned and it works perfectly. I have turned off all optimizations and am using the Debug configuration. I've also turned on full symbols.

These symptoms indicate that you nevertheless still have optimisations turned on. Maybe you disabled them for the project but enabled them for a particular target, or disabled them for a different configuration than the one you are building/debugging. Or maybe you turned them off, but did not clean all targets before rebuilding.



Jonas _______________________________________________ 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
  • Follow-Ups:
    • Re: Booleans not being set
      • From: Erg Consultant <email@hidden>
References: 
 >Booleans not being set (From: Erg Consultant <email@hidden>)

  • Prev by Date: Booleans not being set
  • Next by Date: Re: Help on Stack trace
  • Previous by thread: Booleans not being set
  • Next by thread: Re: Booleans not being set
  • Index(es):
    • Date
    • Thread