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

Author Topic: Text get-DisplayedString Property results in a Crash  (Read 1989 times)

0 Members and 1 Guest are viewing this topic.

diRe

  • Newbie
  • *
  • Posts: 13
    • View Profile
Text get-DisplayedString Property results in a Crash
« on: March 31, 2011, 04:43:53 pm »
Hello,

after reporting a problem with String2D (SFML 1.6), I was told to check out SFML 2.0, whether the error occurs there also or not. Turns out: The originally problem was not only not solved, but made even worse! In the SFML 1.6 version, an exception was thrown, whenever the textlength of the contained string in String2D was longer than 15 characters and the get-part of the Text property was called (see http://www.sfml-dev.org/forum/viewtopic.php?t=4412). In the newer version 2.0, anytime one invokes the get-part of the DisplayedString property of the Text class, the program simply crashes even without throwing an exception:

Code: [Select]
Text text = new Text("Hello World");
Console.WrtieLine(text.DisplayedString); // Boom


Would be nice, if anyone could confirm this problem. I did not want to post an issue at github as I am not 100% sure the problem is a bug within the library.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Text get-DisplayedString Property results in a Crash
« Reply #1 on: March 31, 2011, 05:02:46 pm »
Thanks for trying with SFML 2. I'll test this and confirm if it's a bug in SFML.
Laurent Gomila - SFML developer