Re: Bug in Debugger?
Re: Bug in Debugger?
- Subject: Re: Bug in Debugger?
- From: Olivier Tristan <email@hidden>
- Date: Thu, 30 Apr 2009 16:58:13 +0200
McLaughlin, Michael P. wrote:
*** Using latest Xcode for a Cocoa document project ***
In a header, I define
enum {Lat1, Lon0, Lat0, Lon1}; // same as Rect, PostScript orientation
In a class header, I have
float dispBoundaries[4];
In a source file, I have (just as a check)
dispBoundaries[Lat0] = Lat0;
This code actually works as intended, i.e. dispBoundaries[2] <-- 2.
However, the Debugger window shows that it is the *last* (index = 3) element
of dispBoundaries[] that changes.
This error is perfectly repeatable.
Am I missing something here or is this a real bug?
You're looking for trouble if you don't initialise your first enum.
enum {Lat1 = 0, Lon0, Lat0, Lon1};
Otherwise it may not be 0 if you have other enums in the same file.
My 2 cents.
--
Olivier Tristan
Ultimate Sound Bank
_______________________________________________
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