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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - JamesListener

Pages: [1]
1
Graphics / loadFromFile works only in Release on x64 version
« on: August 08, 2016, 02:19:33 am »
Hello everyone.
I've got a problem with loading a picture.

loadFromFile always returns "false" (both on Image and Texture) in Debug mode, but works fine in Release.
And this is so on x64 version of library (of course I compile it under x64 platform).
If i take x86 version of sfml, it works fine in both Release and Debug modes.

I've found one topic on another forum, where some guy has got the same trouble, but he didn't get any good explanation. On this forum I didn't find similar questions.

What should I do to make it work in Debug mode?

Win10 x64, VS 2015 x64, SFML 2.3.2 64bit version.

Code is pretty simple:
Code: [Select]
Texture tileset;
if (tileset.loadFromFile("images/basic.png"))
printf("picture loaded");
else
printf("picture NOT loaded");

Pages: [1]