SFML community forums

General => General discussions => Topic started by: FrankHamill on September 22, 2022, 03:49:45 pm

Title: Project keeps loading old code?
Post by: FrankHamill on September 22, 2022, 03:49:45 pm
I had written a simple few lines of code that opened the window and showed a .png file. I had closed out and reopened it and then tried to get the program to show a different sprite, but it still showed the old sprite. After around 10 minutes of fiddling with the code, I deleted all of it in hopes of rebuilding it into something new. When I run the program with new code the old 'code' still loads with the sprite.

I receive no errors that I'm aware of, and I'm at a loss for what to do. I was in 'release' mode if that helps and I tried switching to debug to see if that's changed anything, but for debugging it just states "Hello World.", and for release, it just shows the old sprite. What did I do wrong?
Title: Re: Project keeps loading old code?
Post by: eXpl0it3r on September 22, 2022, 11:52:38 pm
Does it compile correctly?

Maybe you selected the option to just run the last successful build up on error and it never compiles your new code successfully.