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 - Natan

Pages: [1]
1
Graphics / Access violation reading location
« on: February 21, 2021, 10:15:50 am »
I have a very simple c++ code with sfml graphics and I'm trying to read an image into Texture using loadFromFile function and when I try to run it with the visual studio debugger I got an exception for reading violation and I have no idea what causes this problem.
Please help!

This is my code:
int main()
{

        sf::Texture texture;

        texture.loadFromFile("girl.png");
        sf::Sprite girl(texture);

        return 0;
}
 

Pages: [1]