Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::font::loadFromFile is spamming the console (Video)  (Read 2005 times)

0 Members and 1 Guest are viewing this topic.

kim366

  • Newbie
  • *
  • Posts: 35
    • View Profile
sf::font::loadFromFile is spamming the console (Video)
« on: September 03, 2014, 11:24:50 am »
I have recorded a video

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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sf::font::loadFromFile is spamming the console (Video)
« Reply #1 on: September 03, 2014, 11:48:34 am »
Make sure that you don't mix debug and release.
Laurent Gomila - SFML developer

kim366

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: sf::font::loadFromFile is spamming the console (Video)
« Reply #2 on: September 03, 2014, 12:39:53 pm »
Okay I tried it in release and it works. Very strange...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sf::font::loadFromFile is spamming the console (Video)
« Reply #3 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.
Laurent Gomila - SFML developer

kim366

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: sf::font::loadFromFile is spamming the console (Video)
« Reply #4 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.