Hello,
I am new to SFML (just switched over from SDL) and programming in general, so this might be a pretty stupid question, but here it goes:
I tried code from the Window Events as well as the Window Creation tutorials, but while running either of them I get:
Unhandled exception at 0x6903a39d in ThingThingSFML.exe: 0xC0000005: Access violation reading location 0x00000054.
I narrowed down the code to:
#include <SFML/Window.hpp>
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
App.Close();
return EXIT_SUCCESS;
}
yet I still get the same error. It opens a window perfectly, but it gets a memory access violation when Close(); is called. All other examples that do not use the Window class seem to work fine. I was using SFML2.0, so I tried the same with SFML1.6 with no luck (same error)
Compiler: VS2010
I linked to the dynamic versions of the libraries. I tried using sfml-main as well, I can't see how that could possibly make a difference anyways.
What could possibly cause this error?
Thank you for any help you can offer!