I'm getting this error every time and all I want to do is make a window.
First-chance exception at 0x00000000 in SFMLTesting.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x00000000 in SFMLTesting.exe: 0xC0000005: Access violation reading location 0x00000000.
I've narrowed down the location where the error is coming from to this line
sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "SFML Sample Application");
Here's the rest of the program
/*C++ Compiler Includes*/
#include "stdafx.h"
#include <iostream>
/*C++ Compiler Includes*/
/*SFML Includes*/
#include <SFML\Graphics.hpp>
#include <SFML\Window.hpp>
//#include <SFML\Audio.hpp>
/*SFML Includes*/
sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "SFML Sample Application");
while (Window.IsOpened())
{
sf::Event Event;
while (Window.PollEvent(Event))
{
switch (Event.Type)
{
case sf::Event::Closed: Window.Close();
break;
default:
break;
}
}
Window.Clear(sf::Color(0, 255, 255));
Window.Display();
}
//system("pause");
return EXIT_SUCCESS;
Does anyone know what is going on or how to fix this?
I don't like having problems I can't solve and I'm clueless as to where else to look on this one.