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

Author Topic: RenderTarget::Clear segmentation fault  (Read 2116 times)

0 Members and 1 Guest are viewing this topic.

sormo

  • Newbie
  • *
  • Posts: 6
    • View Profile
RenderTarget::Clear segmentation fault
« on: June 30, 2011, 08:45:45 am »
Hello,
I am using sfml2 for some time. Yesterday I have decided to build new libraries from snapshot with number f9435eb. I have used cmake to generate codeblocks project and build static libraries (codeblocks mingw). After rebuild of my project with new libraries application crashes with segmentation fault in RenderTarget::Clear when trying to call pure virtual method Activate() on line 59. I have tried tutorial project and it crashes also. sf::RenderWindow is instantiated on stack, but when it goes into Clear it crashes.  :(
Looks like my libraries are not build correctly, but I don't know why. I have build previous libraries same way and they work.
Does anyone know where can be the problem?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
RenderTarget::Clear segmentation fault
« Reply #1 on: July 01, 2011, 11:10:12 am »
Are you mixing dlls from two versions ? Try cleaning everything and rebuild SFML then.
SFML / OS X developer

sormo

  • Newbie
  • *
  • Posts: 6
    • View Profile
RenderTarget::Clear segmentation fault
« Reply #2 on: July 01, 2011, 12:06:24 pm »
You are right. My mistake. :oops: I have changed libraries but did not updated include files.  It's working now.