Re: Redisplaying the Window
Re: Redisplaying the Window
- Subject: Re: Redisplaying the Window
- From: Chris Espinosa <email@hidden>
- Date: Fri, 15 Dec 2006 22:12:20 -0800
On Dec 15, 2006, at 10:06 PM, Laurence Harris wrote: I spoke too soon. Whenever I call the function (by way of pressing a key), it invokes the debugger, which says that redisp = 139396. Is there something wrong with the way that I looped my for() statements? Is there some way that redisp could get that high? Or am I misinterpreting the debugger somehow? What is wrong with my code?
for (GLfloat redisp = 0; redisp <= 7; redisp ++) { for (GLfloat redisp2 = 0; redisp2 <= 14; redisp ++)
Don't you want to increment redisp2 in the second one?
The man's got a point there.
And rather than having your program "invoke the debugger" (which is the politest euphemism for "crash" I've ever heard), you may want to start in the debugger, setting a breakpoint at your outer for loop and stepping through with the "Step Over" command. Look at each variable after each line executes to make sure it's changing the way you expect it to.
Chris |
_______________________________________________
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