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

Author Topic: sfml-graphics-2.dll Crash!  (Read 1468 times)

0 Members and 1 Guest are viewing this topic.

Haikarainen

  • Guest
sfml-graphics-2.dll Crash!
« on: June 30, 2011, 05:07:57 am »
Stacktrace:
Code: [Select]
#0 00000000 0x52005000 in ??() (??:??)
#1 6699850A sf::RenderTarget::Clear() (E:\Work\c++\modernarcade\bin\Debug\sfml-graphics-2.dll:??)
#2 0040BE02 hkVideoHandler::Step(this=0x3e44b8) (E:\Work\c++\modernarcade\src\Video\hkVideoHandler.cpp:52)
#3 004158C9 hkEngine::Step(this=0x3e3c58) (E:\Work\c++\modernarcade\src\hkEngine.cpp:194)
#4 00415130 hkEngine::Initialize(this=0x3e3c58) (E:\Work\c++\modernarcade\src\hkEngine.cpp:118)
#5 0040139E main() (E:\Work\c++\modernarcade\main.cpp:6)


This happens whenever I try to run my project, that worked perfectly fine until I compiled and linked a fresh snapshot of SFML2. It ONLY happens when I run in debugmode, also, the debugbinary whines about libstdc++-6.dll while the release(wich works) doesnt.

Running a fresh install of Windows XP SP3, Code::Blocks + MinGW. This is annoying since I cant effectively debug my other code..
The code that causes it to crash is sf::RenderVideo::Clear(); , even tho it nags about RenderTarget.

Haikarainen

  • Guest
sfml-graphics-2.dll Crash!
« Reply #1 on: July 01, 2011, 07:49:53 am »
Fixed!
Apparently, you have to link the debug-libs on the debugtarget ^^
so have:
Code: [Select]
-lsfml-system
on release, and:
Code: [Select]
-lsfml-system-d
on debug.

To build the debuglibrary from latest snapshot, change CMAKE_BUILD_TYPE from "Release" to "Debug" when configuring the CMake