SFML community forums

Help => General => Topic started by: Wine on November 21, 2009, 07:44:37 pm

Title: Unhandled exception in sf::String
Post by: Wine on November 21, 2009, 07:44:37 pm
Hi,

I have a problem with sf::String class. When I want to run code like this:
Code: [Select]
int main()
{
// ...
sf::RenderWindow Window;
// ....
while(true)
{
//...
Window.Draw(sf::String("text"));
//...
}
//...
return 0;
}// <- ERROR!
I get run time error: "Unhandled exception ..." after "return 0;" line. When I don't use font drawing it's run OK. Some solutions?

Wine
Title: Unhandled exception in sf::String
Post by: Laurent on November 21, 2009, 08:03:13 pm
This is a known bug.

One simple workaround is to use the static SFML libraries.
Title: Unhandled exception in sf::String
Post by: Wine on November 21, 2009, 08:08:12 pm
Quote from: "Laurent"
This is a known bug.

One simple workaround is to use the static SFML libraries.
Do you plan patch to that version?
Title: Unhandled exception in sf::String
Post by: Laurent on November 21, 2009, 09:07:10 pm
It is already fixed in SFML 2.