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

Author Topic: Can't load font while debugging  (Read 1749 times)

0 Members and 1 Guest are viewing this topic.

Leodido

  • Newbie
  • *
  • Posts: 10
    • View Profile
Can't load font while debugging
« on: June 03, 2010, 08:45:33 am »
Hi,

I'm trying to debug my application, when I simply execute it the game resources are loaded correctly but afterwards I have a crash wich I'd like to investigate.

The thing is as soon as I start debugging, the application can't seem to load my font and thus exits prematurely before arriving at the point where I'd like to investigate.

Anyone ever had this issue?

EDIT: Using vers 1.6 btw

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Can't load font while debugging
« Reply #1 on: June 03, 2010, 09:07:18 am »
Are you using Visual Studio? If so, you have to set the working directory in your project settings (project settings -> debug -> working directory: set it to $(TargetDir)).
Laurent Gomila - SFML developer

Leodido

  • Newbie
  • *
  • Posts: 10
    • View Profile
Can't load font while debugging
« Reply #2 on: June 03, 2010, 09:13:30 am »
thanks a lot, that was it :)

 

anything