SFML community forums

Help => General => Topic started by: Leodido on June 03, 2010, 08:45:33 am

Title: Can't load font while debugging
Post by: Leodido 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
Title: Can't load font while debugging
Post by: Laurent 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)).
Title: Can't load font while debugging
Post by: Leodido on June 03, 2010, 09:13:30 am
thanks a lot, that was it :)