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

Pages: [1]
1
General / Re: Access violation when trying to create an sf::RenderWindow
« on: September 13, 2016, 04:05:44 pm »
The "Latest Stable Version" from http://www.sfml-dev.org/download.php.

2
General / Access violation when trying to create an sf::RenderWindow
« on: September 12, 2016, 09:57:38 pm »
Microsoft Visual Studio Community 2015 (14.0.24720.00 Update 1)

I am compiling / running in Debug, both the release and debug .dll's are in the working directory, where they need to be. I am referencing the sfml-***-d.lib's, and I am pointing to the D:\***\SFML-2.4.0\lib and D:\***\SFML-2.4.0\include directories in my project settings.

#include "stdio.h";
#include <iostream>;
#include <SFML/Graphics.hpp>;


int main ()
{
        sf::RenderWindow window( sf::VideoMode( 640, 480 ), "Title" );
        std::cin.get();
}
 

Executing this, I get the following exception on the first line (the one with the RenderWindow constructor).

Quote
Exception thrown at 0x56D5EEB6 (sfml-system-d-2.dll) in D20 RPG.exe: 0xC0000005: Access violation reading location 0xCCCCCCD8.

I am relatively new to c++, but I have successfully completed a few assignments in an intro course and a graphics course already (using GLFW, GLEW, GLM, etc.). I have followed the tutorial http://www.sfml-dev.org/tutorials/2.4/start-vc.php from start to finish two times now, each time starting from an empty Visual c++ project. The project compiles fine, and runs without any problems if I comment out the first line.

Any help is appreciated.

Pages: [1]
anything