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.


Messages - tsero32

Pages: [1]
1
Graphics / Re: Failed to load image message contains wrong file name
« on: February 01, 2013, 04:33:25 pm »
Hmm I may have done, it was a while ago but I can't remember. So new plan, I shall swap to 2.0 and see if the problem persists.

2
Graphics / Re: Failed to load image message contains wrong file name
« on: January 30, 2013, 05:01:02 pm »
Windows 7 home premium SP1 64bit , Microsoft Visual C++ 2010 ( i know its an IDE but I have completly forgotten what the complier is called.) I downloaded the 1.6 some time ago, so I believe it is the 2008 version.

3
Graphics / Re: Failed to load image message contains wrong file name
« on: January 30, 2013, 04:50:40 pm »
In the release (with the problem) version I use the release libs and the debug uses the debug libs. Not sure how to prove and show this though.


The Image in the directory, I have come across all the advice to swap versions and I plan to do so, this has persuaded me more so, but before I swap I would like to know what the problem is here is there a reason my program error message would contain the wrong file name than the string I put in the argument.

4
Graphics / Re: Failed to load image message contains wrong file name
« on: January 30, 2013, 04:31:57 pm »
#include "StdAfx.h"


using namespace std;

int main(){

        sf::Image Image;
        if (!Image.LoadFromFile("playerblock.png")){
                        return EXIT_FAILURE;
        }
}
 


is the minimum complete example, it complains with out StdAfx.h which only contains:
#include <SFML/Graphics.hpp>

The image opens fine in other programs and in the debug version, the problem is still persisting.

5
Graphics / Re: Failed to load image message contains wrong file name
« on: January 30, 2013, 04:07:19 pm »
Sorry I didn't mean to post it this early, that was something I tried,  edited the post now sorry about that.

6
Graphics / Failed to load image message contains wrong file name
« on: January 30, 2013, 03:48:43 pm »
I am trying to load an image from file to use as a sprite, this worked in debug but not the release

     cout<<"start";

    // Load the sprite image from a file
    sf::Image Image;
        cout<<"a"<<endl;
    if (!Image.LoadFromFile("playerblock.png")){
                cout<<"b"<<endl;
        return EXIT_FAILURE;
        }

the error message reads

"  Fail to load image "erblock.png * " .Reason : Unable to open file "

Here is an image for clarification.




Just to reiterate, this works in the debug but I am getting this error in the release version.

I have had a quick look through but I can't find a similar error. I would really appreciate some help on this one

Pages: [1]