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

Author Topic: String2D#GetRect Crashes when called  (Read 5955 times)

0 Members and 1 Guest are viewing this topic.

rpgmaker

  • Newbie
  • *
  • Posts: 38
    • View Profile
String2D#GetRect Crashes when called
« on: March 15, 2009, 03:34:33 am »
Just as the title states. When ever GetRect is called on String2D object it crashes and gives the below error.


Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Thanks for the help.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
String2D#GetRect Crashes when called
« Reply #1 on: March 15, 2009, 10:15:36 am »
Laurent Gomila - SFML developer

rpgmaker

  • Newbie
  • *
  • Posts: 38
    • View Profile
String2D#GetRect Crashes when called
« Reply #2 on: March 15, 2009, 08:05:37 pm »
I download it and tried it and still does not work. It gives me the same error message.

Is something wrong with the way i am calling it?

Code: [Select]


using G = SFML.Graphics;I am aliasing the namespace as G

text = new G.String2D("God is Good");
G.FloatRect rect = text.GetRect();

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
String2D#GetRect Crashes when called
« Reply #3 on: March 15, 2009, 08:54:40 pm »
The fix is not included in SFML 1.4, you have to download the latest sources from SVN and recompile it yourself. Or wait for SFML 1.5.
Laurent Gomila - SFML developer

rpgmaker

  • Newbie
  • *
  • Posts: 38
    • View Profile
String2D#GetRect Crashes when called
« Reply #4 on: March 15, 2009, 10:45:13 pm »
I did download the DotNet SVN version. And compile the C# code to get the .net dll. But it still did not work and gave me the same error message.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
String2D#GetRect Crashes when called
« Reply #5 on: March 15, 2009, 11:18:16 pm »
You have to compile the C++ version, then the C binding and finally the .Net binding from the brand new C binaries :D
Laurent Gomila - SFML developer

rpgmaker

  • Newbie
  • *
  • Posts: 38
    • View Profile
String2D#GetRect Crashes when called
« Reply #6 on: March 15, 2009, 11:20:53 pm »
I think i would just wait for the version 1.5 to be posted ^_^

 

anything