SFML community forums
Help => Graphics => Topic started by: Genion on December 30, 2010, 10:53:47 pm
-
Hi,
I just wanted to upgrade my project from SFML1.6 to SFML2.0. It throws an exception (Vector iterator not dereferencable)
I compiled the latest snapshot from the SVN and compiled it with VS10 as a static library.
#include <SFML/Graphics.hpp>
int main(void)
{
sf::RenderWindow app;
app.Create(sf::VideoMode(800, 600), "Foobar");
sf::Font font;
font.LoadFromFile("comic.ttf");
sf::Text text("Foobar");
while(app.IsOpened())
{
sf::Event evt;
while(app.GetEvent(evt))
{
if(evt.Type == sf::Event::Closed)
app.Close();
}
app.Clear(sf::Color::Magenta);
app.Draw(text); // Here it happens
app.Display();
}
}
Is it a bug or did I miss something?
Thanks
Cookie addicted Genion
-
Same problem for me. Oh and do the latest ATi drivers work with SFML 2 yet?
-
It was fixed before you posted your message ;)
Oh and do the latest ATi drivers work with SFML 2 yet?
Nop.
-
Thanks Laurent.
-
Damn... don't be so fast! :lol:
Thanks for fixing.
-
Laurent is so fast that he can read a bug report, then fix it before said bug report is posted, in that order.