Honestly, I have no idea I'm still pretty new to SFML myself. Does it happen with all images or just the one?
Edit: Your doing a lot in the while loop including loading the image, try moving that out of the loop.
Actually take Lines 7, 15, 16, 18, 19, 20 and 21 and put them outside of your main running loop. Make sure to only run declarations and the like once for each object\item.
According to their site, 1.6 is the current version is 2.0 is the "future version".
1.6 is the current official release, but the release candidate for SFML 2.0 is already released, and an official release is right around the corner. Even the maker of SFML says that 1.6 is deprecated.
Here is a quote from the SFML forum:
SFML 1.6 is already deprecated, and although there's no official release of SFML 2.0 yet there is a RC which is already 99.999% of what the final release will be.
@ Script Coder: Do yourself a HUGE favor and don't do that. Just jump right into SFML 2.0. I am used to 1.6, I'd confidently say that I know it well but now that I am moving to 2.0 things have changed quite a bit. Both major things like how you are meant to handle events and minor things like the capitalization in the function names. It's getting really annoying having to keep going back to the tutorial for something that I can tell you off the top of my head how to do in 1.6.
Okay, Thanks Computerggek01, one problem, the 2.0 tutorial is not done yet, last i saw it only was at window package section. Or is there another tutorial i don't know about?
2.0 isn't that different from 1.6. There's a changelog posted, but I think the main thing that'll get you is sf::Input is removed, and replaced by sf::Mouse, sf::Keyboard, and sf::Joystick I believe.
Not a huge change, but if you're using sf::Input, you'll just need to replace it with the appropriate object.
Other than that, they have pretty good documentation there.