Advertisement

Something Weird...

Started by July 07, 2000 11:35 PM
11 comments, last by a2k 24 years, 5 months ago
so, backsidesnap, if yer still out there, and everyone else, since my main loop is in the render callback function, everytime i called the glutPostRedisplay function in my code(the function that triggers the render callback func) it calls the main loop again. then that means, this might be equivalent to recursion! nah, not really, but it would mean i''m doing WAY more processing than is necessary, no, wait, it WOULD be recursion, huh. hmmmm.... but my bets are on this being the problem.

anyway, one of the reasons i''m using glut is because i like using the console window for debugging. is there a way to bring up a console window for debugging a win32 app? or, what is the best way to debug a win32 app? (see, i usually put cout statements everywhere for a certain variable, and then i can observe the changes of the variables in the console window after termination)

hope you guys can respond....

a2k
------------------General Equation, this is Private Function reporting for duty, sir!a2k

"so, backsidesnap, if yer still out there, and everyone else, since my main loop is in the render callback function, everytime i called the glutPostRedisplay function in my code(the function that triggers the render callback func) it calls the main loop again. then that means, this might be equivalent to recursion! nah, not really, but it would mean i''m doing WAY more processing than is necessary, no, wait, it WOULD be recursion, huh. hmmmm.... but my bets are on this being the problem.

anyway, one of the reasons i''m using glut is because i like using the console window for debugging. is there a way to bring up a console window for debugging a win32 app? or, what is the best way to debug a win32 app? (see, i usually put cout statements everywhere for a certain variable, and then i can observe the changes of the variables in the console window after termination)

hope you guys can respond...."


Hi,

What i would recommend you to do is to download an evaluation copy of a tool named "Purify" from the web. I use that thing for a long time and it''s really worth each penny. It automatically detects leaks and all sorts of runtime errors and there is a seemingless integration into the VC environment. What i also use sometimes is NuMegas Bounce Checker and a freely tool from the UNIX world called lint. Lint checks a lot on the source level but it is very powerfull, but you have to spend some time before you can use it. There is also a special version avail called pc lint.
What i can also offer is that i try to find your bugs on my box.
But for that i would need the binary and source.


cu

Peter




HPH
Advertisement
where can i find Purify and Bounce Checker? i wouldn''t be able to pick one up from my local compusa, would i? how much is it, and where would i be able to download eval copies?

a2k
------------------General Equation, this is Private Function reporting for duty, sir!a2k

This topic is closed to new replies.

Advertisement