Sign in to follow this  
daniel_i_l

"Ghost" variables

Recommended Posts

I have a class were I had put two public variables and used them for debugging. After using them I erased them but then when I ran the program the framerate went down to 1fps and everything stopped working. the wierd thing is, i did a search and they don't appear anywere else in the program! I did rebuild and it still happens, i then changed their names and it still worked but when i erased them there was the problem. using VC++. What does this mean? Thanks.

Share this post


Link to post
Share on other sites
maybe your computer's clock is wrong, and some of your source files were saved with a future date thus the compiler won't recompile them?

Check your clock, and re-save all your source files with the correct date.

if that were the case, obviously.

Share this post


Link to post
Share on other sites
You could also have a situation where you're writing outside the bounds of an array/to an unallocated pointer. In this case the presence or absence of the variables changes the layout of the program in memory and thus whether or not the program works properly

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this