Re: struct problem

2008-04-13 Thread Michael Vannorsdel
This is because the actual value assignment was optimized and moved later in the code. GDB can't really follow the source all that well because the instructions that belong to each line of code are now moved all around to improve performance. On Apr 13, 2008, at 6:31 AM, Thomas Backman wr

Re: struct problem

2008-04-13 Thread Dean Ritchie
Earlier I wrote: On Apr 13, 2008, at 5:31 AM, Thomas Backman wrote: Are you running the app in debug mode? I've made the mistake of trying to debug in "release" mode a few times, and it often shows some insane values for variables. This is news to me. How can I tell? In the Run menu, th

Re: struct problem

2008-04-13 Thread Dean Ritchie
On Apr 13, 2008, at 5:31 AM, Thomas Backman wrote: Are you running the app in debug mode? I've made the mistake of trying to debug in "release" mode a few times, and it often shows some insane values for variables. This is news to me. How can I tell? In the Run menu, the Go item is Go(

Re: struct problem

2008-04-13 Thread Thomas Backman
Are you running the app in debug mode? I've made the mistake of trying to debug in "release" mode a few times, and it often shows some insane values for variables. /Thomas On Apr 13, 2008, at 2:21 PM, Dean Ritchie wrote: On Apr 12, 2008, at 8:30 PM, Ben Lachman wrote: In general the namin

Re: struct problem

2008-04-13 Thread Dean Ritchie
On Apr 12, 2008, at 8:30 PM, Ben Lachman wrote: In general the naming convention used in Objective-C is that class names start with capitals and variable names start with lower-case characters (both use bumpy case which I think you know). For instance NSWindow (class) and aWindow (variabl

Re: struct problem

2008-04-12 Thread Ben Lachman
On Apr 12, 2008, at 8:03 AM, Dean Ritchie wrote: On Apr 12, 2008, at 1:37 AM, Hamish Allan wrote: On Sat, Apr 12, 2008 at 2:58 AM, Dean Ritchie <[EMAIL PROTECTED]> wrote: columnCount = [[LASize cellAtIndex:0] intValue]; rowCount = [[LASize cellAtIndex:1] intValue]; When I

Re: struct problem

2008-04-12 Thread Dean Ritchie
On Apr 12, 2008, at 1:37 AM, Hamish Allan wrote: On Sat, Apr 12, 2008 at 2:58 AM, Dean Ritchie <[EMAIL PROTECTED]> wrote: columnCount = [[LASize cellAtIndex:0] intValue]; rowCount = [[LASize cellAtIndex:1] intValue]; When I stop right after initializing the NSRect local var

Re: struct problem

2008-04-12 Thread Hamish Allan
On Sat, Apr 12, 2008 at 2:58 AM, Dean Ritchie <[EMAIL PROTECTED]> wrote: > columnCount = [[LASize cellAtIndex:0] intValue]; > rowCount = [[LASize cellAtIndex:1] intValue]; > When I stop right after initializing the NSRect local variable, the > debugger reports miniscule values fo