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

Author Topic: Unhandled exception in sf::String  (Read 2380 times)

0 Members and 1 Guest are viewing this topic.

Wine

  • Newbie
  • *
  • Posts: 11
    • View Profile
Unhandled exception in sf::String
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Unhandled exception in sf::String
« Reply #1 on: November 21, 2009, 08:03:13 pm »
This is a known bug.

One simple workaround is to use the static SFML libraries.
Laurent Gomila - SFML developer

Wine

  • Newbie
  • *
  • Posts: 11
    • View Profile
Unhandled exception in sf::String
« Reply #2 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Unhandled exception in sf::String
« Reply #3 on: November 21, 2009, 09:07:10 pm »
It is already fixed in SFML 2.
Laurent Gomila - SFML developer

 

anything