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

Author Topic: Failed to share the OpenGl context  (Read 3042 times)

0 Members and 2 Guests are viewing this topic.

etixpp

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • FoxFire Development Website
    • Email
Failed to share the OpenGl context
« on: November 11, 2013, 08:14:51 pm »
Hello guys, just a small issue, cannot figure out what causes it, always when i close my stuff over the console window i get a "Failed to share the OpenGl context" print and a exception is thrown, if i close my stuff over the normal Window everything goes right, this only happens if something already got drawn to the window, i am sure there is a easy explanation for this and i am just missing something^^

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Failed to share the OpenGl context
« Reply #1 on: November 11, 2013, 08:22:59 pm »
Quitting the program by closing the console leads to an abnormal program termination. You're not supposed to close the application like that.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

etixpp

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • FoxFire Development Website
    • Email
Re: Failed to share the OpenGl context
« Reply #2 on: November 11, 2013, 08:24:49 pm »
Yes i am aware of this. I was just kinda annoying because this normaly does not happen, or at least never happened on my application, but shouldn´t be a problem anyways after i hide the console. I just like to know what causes mistakes in my programm^^

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11028
    • View Profile
    • development blog
    • Email
Re: Failed to share the OpenGl context
« Reply #3 on: November 12, 2013, 10:20:45 am »
abnormal program termination
Which could for instance mean, that stuff gets delete before other stuff gets delete, thus leading to errors. If you're lucky you can even run into crashes that way. :P

Understanding what "undefined behavior" is happening isn't really educational (in most cases), thus it's better to not do it and move on. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

etixpp

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • FoxFire Development Website
    • Email
Re: Failed to share the OpenGl context
« Reply #4 on: November 12, 2013, 01:06:19 pm »
allright, then i just won´t care for it^^

 

anything