• 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: Redisplaying the Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Redisplaying the Window (From: Adam <email@hidden>)
 >Re: Redisplaying the Window (From: Chris Espinosa <email@hidden>)
 >Re: Redisplaying the Window (From: Adam <email@hidden>)
 >Re: Redisplaying the Window (From: Adam <email@hidden>)
 >Re: Redisplaying the Window (From: Laurence Harris <email@hidden>)

  • Prev by Date: Re: Redisplaying the Window
  • Next by Date: Re: Dev on mac, build on a sparc
  • Previous by thread: Re: Redisplaying the Window
  • Next by thread: Re: Redisplaying the Window
  • Index(es):
    • Date
    • Thread