SFML community forums

Help => General => Topic started by: kim366 on September 03, 2014, 11:24:50 am

Title: sf::font::loadFromFile is spamming the console (Video)
Post by: kim366 on September 03, 2014, 11:24:50 am
I have recorded a video
 http://youtu.be/tK4WDvMwWew (http://youtu.be/tK4WDvMwWew)
about what is happening, when I use font.loadFromFile. Code is in the video.
I am sure, that it's the font.loadFromFile, because I tried deleting everything else, and it still didn't work.
It doesn't even work in other projects.
I am using VS 2013.

Am I doing something wrong?
Title: Re: sf::font::loadFromFile is spamming the console (Video)
Post by: Laurent on September 03, 2014, 11:48:34 am
Make sure that you don't mix debug and release.
Title: Re: sf::font::loadFromFile is spamming the console (Video)
Post by: kim366 on September 03, 2014, 12:39:53 pm
Okay I tried it in release and it works. Very strange...
Title: Re: sf::font::loadFromFile is spamming the console (Video)
Post by: Laurent on September 03, 2014, 01:05:12 pm
To be more precise, you should not link to SFML release libraries in debug mode. That's probably what you did.
Title: Re: sf::font::loadFromFile is spamming the console (Video)
Post by: kim366 on September 03, 2014, 01:20:02 pm
No I didn't. When I do that The window doesn't even open. I built both versions in CMake and linked both of them too. there are 2 folders. A Debug and a Release one and I have linked them properly.