Hello lovely sfml community. First, let me apologize if the question I'm about to ask is considered "stupid." I am fairly new at sfml/c++, having been dabbling in other programming languages in my free time over the past few years. Anyways, I seemed to have stumbled onto a problem. It seems that I cannot load texture images from a file! After finding the source of the problem in my code, I isolated the issue. I removed all other code paths so that only the following code should run, considering it is the main() function. However, the following code does not even work:
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
sf::Texture texture = sf::Texture();
texture.loadFromFile("image.png"); //This line is the source of the error. The file "image.png" exists, I assure you.
return 0;
}
I receive the following (very scary) error:
Unhandled exception at 0x6CCDDEF8 (msvcr110.dll) in MyGame.exe: 0xC0000005: Access violation reading location 0x00D41000.
Then, Visual Studio directs me to line 367 in the file "memcpy.asm"
rep movsd ;N - move all of our dwords
I honestly have no clue what is going on
. I've isolated the issue and don't know where to go from here. Any help is greatly appreciated!