SFML community forums

Help => Window => Topic started by: sormo on June 30, 2011, 08:45:45 am

Title: RenderTarget::Clear segmentation fault
Post by: sormo 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?
Title: RenderTarget::Clear segmentation fault
Post by: Hiura on July 01, 2011, 11:10:12 am
Are you mixing dlls from two versions ? Try cleaning everything and rebuild SFML then.
Title: RenderTarget::Clear segmentation fault
Post by: sormo 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.