watched variables shows errorneous value

Eric Klumpp eric.klumpp at emailforever.com
Tue Jun 12 21:28:15 BST 2001


> while tracing the following code.......
> 	
> float ppmatrix[16];
> glGetFloatv(GL_PROJECTION_MATRIX, ppmatrix);
> printf("%f", ppmatrix[0]);
> 	
> 
> when expanding the watched variable ppmatrix, ppmatrix[0] shows NaN(0x4000)
> but the printf statement correctly shows the value of ppmatrix[0] as 1.00000


yes, I already seen this problem in my program !

I have found it is a problem with the debugger, and more precisally with 
the breakpoints. In my case I do a lot of conversions with atof for 
example, and when I put a breakpoint at a line the next line including 
this conversion will return NaN. I have tried to do the same things in a 
small project doing only the conversions but the problem didn't appeared !
I think the problem comes from a to big project, or a lack of security 
in the dynamic memory management !

-- 
_____________________________________________________________

Eric Klumpp
                                             \\\\\////
email : eric.klumpp at emailforever.com         / ^   - \
                                            ( (o) (o) )        
________________________________________oOOO____(_)____OOOo__
 

"La théorie, c'est quand on sait tout et que rien ne fonctionne.
La pratique, c'est quand tout fonctionne et que personne ne sait pourquoi.
Ici, nous avons réuni théorie et pratique : Rien ne fonctionne... et personne ne sait pourquoi!"
             -- Albert Einstein--


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list