SFML community forums

Help => General => Topic started by: collechess on May 23, 2013, 10:49:22 pm

Title: Release Build Has No Graphics
Post by: collechess on May 23, 2013, 10:49:22 pm
Let me first say that I'm not sure if my problem is with SFML or Visual C++ 2010.  I'm hoping somebody can help me either way  :).  I have an SFML program that works fine in Debug, and even after building Release and running it from Visual C++ it runs fine.  However, when I run the Release .exe in its location, without the IDE, the graphics do not show up at all.    I have changed the SFML .libs to static, and have added the only image file to the Resource files (I'm not sure if this is needed).  Any solutions?
Title: Re: Release Build Has No Graphics
Post by: Nexus on May 23, 2013, 10:54:45 pm
Don't add the image to the resource file. Keep it in the folder of the executable, and make sure you use the same working path inside the IDE (Project Properties -> Debugging) and when you start from the explorer.

You should also read the standard output, you are notified if a resource cannot be loaded. Furthermore, don't you check the return type of the loadFrom...() functions?