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

Author Topic: Constructing text or setting string causes internal opengl error  (Read 1141 times)

0 Members and 1 Guest are viewing this topic.

srin

  • Newbie
  • *
  • Posts: 2
    • View Profile
When I create a text object like in the sample:
sf::Text text("hello");

or if I create one and set string later, it crashes,

Even If I remove everything else from my code except the text sample, it still crashes

Unhandled exception at 0x77d715ee in SFML_Tut.exe: 0xC0000005: Access violation reading location 0xcccccccc.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
AW: Constructing text or setting string causes internal opengl error
« Reply #1 on: March 10, 2013, 07:51:11 am »
Make sure you're not mixing debug and release modes and that your SFML version is compatible with your compiler.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Constructing text or setting string causes internal opengl error
« Reply #2 on: March 10, 2013, 08:44:19 am »
If you're using a recent revision of SFML 2, you must load a font, there's no more default font.
Laurent Gomila - SFML developer

srin

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Constructing text or setting string causes internal opengl error
« Reply #3 on: March 10, 2013, 08:47:50 am »
Quote
If you're using a recent revision of SFML 2, you must load a font, there's no more default font.

Yeah I had one loaded


Quote
Make sure you're not mixing debug and release modes and that your SFML version is compatible with your compiler.

Wow that was it, I had system instead of system-d in the debug link....


Thank you very much!

 

anything