I recently decided to stop using GLUT because it was just too restrictive =x
I looked around for alternatives and saw SFML recommended, so here I am.
Anyways, I was following the tutorials and reached the Fonts and Texts part when I hit a road block =/
The code I'm using is roughly:
sf::Font Font;
Font.LoadFromFile("04B_30_.TTF");
sf::Text Text("Hello, world!", Font);
while (true) {
Window.Draw(Text);
}
It works and all, the text is drawn onto the window but when I close the program, I get this error (from debugging):
/*
* If this ASSERT fails, a bad pointer has been passed in. It may be
* totally bogus, or it may have been allocated from another heap.
* The pointer MUST come from the 'local' heap.
*/
_ASSERTE(_CrtIsValidHeapPointer(pUserData));
So some bad pointer is being passed or so it is claimed =/
I commented the line: sf::Text Text("Hello, world!", Font);
And the Drawing part and the error never came up.
I'm using SFML 2 (VS2010) and would like to know if I messed up or if it's just a little bug =x