From: Jonas Maebe <email@hidden>
To: XCode Users <email@hidden>
Sent: Saturday, February 7, 2009 3:31:11 AM
Subject: Re: Booleans not being set
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?
--> Yes, it actually returns true. I know because the first thing I did was run it without the debugger and my connection monitor string in my window said I was online without the machine being connected to the network. I wouldn't have started debugging it if there wasn't a problem first.
> 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.
All the optimizations are off. I am using the standard Debug target and I checked every setting 3 times. And I am turning them off in the target which overrides the settings in the project. And if the settings were a problem it
_______________________________________________
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