Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: "failed to activate the window's context" no threading  (Read 2964 times)

0 Members and 1 Guest are viewing this topic.

maximusprimus

  • Newbie
  • *
  • Posts: 2
    • View Profile
"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 ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
"failed to activate the window's context" no threading
« Reply #1 on: December 26, 2016, 06:58:04 pm »
You're most likely using half a decade old GPU driver version.

What kind of GPU do you have?
What's the exact driver version?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

maximusprimus

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: "failed to activate the window's context" no threading
« Reply #2 on: December 26, 2016, 08:43:26 pm »
So yeah, my GPU is old and I forgot to update my drivers a couple months ago after I rebuilt my computer.

For your information, my GPU is nvidia geforce gtx 550 ti
and my driver version was very old.

After update, works perfectly. Thanks!

And by the way, I'm not receiving any emails from this site concerning forgotten passwords (since at least 3 hours ago), I just created a new account because of that. I also tried to get an email from this account and still haven't received it, inbox or junk.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: "failed to activate the window's context" no threading
« Reply #3 on: December 27, 2016, 05:51:25 pm »
And by the way, I'm not receiving any emails from this site concerning forgotten passwords (since at least 3 hours ago), I just created a new account because of that. I also tried to get an email from this account and still haven't received it, inbox or junk.
It appears our mail server is (again) being blocked by hotmail. We'll try to resolve it as quickly as possible. If you PM me your other account, I could reset the password manually for you.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything