SFML community forums

Help => Graphics => Topic started by: srin on March 10, 2013, 01:09:42 am

Title: Constructing text or setting string causes internal opengl error
Post by: srin on March 10, 2013, 01:09:42 am
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.
Title: AW: Constructing text or setting string causes internal opengl error
Post by: eXpl0it3r 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.
Title: Re: Constructing text or setting string causes internal opengl error
Post by: Laurent 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.
Title: Re: Constructing text or setting string causes internal opengl error
Post by: srin 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!