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.


Topics - maximusprimus

Pages: [1]
1
Window / "failed to activate the window's context" no threading
« on: December 26, 2016, 06:42:09 pm »
Hi! I upgraded the SFML version from an older project and got some weird console errors so I created a brand new empty project following the tutorial and still got the same errors. Also, the window is blank...



I don't think my configurations are wrong since I checked em out a few times. According to other posts the Warning is not important (http://en.sfml-dev.org/forums/index.php?topic=18461.0) but the other errors seem to be related to threading, but I'm not doing any threading, I simply copy pasted the example from the tutorial as such :




#include <SFML/Graphics.hpp>


int main()
{
   sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
   sf::CircleShape shape(100.f);
   shape.setFillColor(sf::Color::Green);


   while (window.isOpen())
   {
      sf::Event event;
      while (window.pollEvent(event))
      {
         if (event.type == sf::Event::Closed)
            window.close();
      }
      
      window.clear();
      window.draw(shape);
      window.display();
   }


   return 0;
}


I am also not getting any other errors in my Visual studio output.


I am using VS community 2015 and picked the corresponding library (Visual C++ 14 (2015) - 32-bit)
[/size]
[/size]Anybody have an idea where these errors come from ?

Pages: [1]
anything