Hi,
I have a problem when I try to use SFML 2.0 RC with CodeBlocks' newest nightly build and MinGW (GCC 4.7). I installed everything correctly (with the tutorial for the 2.0 version) and I can compile without any errors, but I cannot start the compiled programs. Every program crashes on startup (tried with Windows XP and Windows 7 X64). When I reduce the example program from the tutorial to the following, then I get a segmentation fault in the function VideoMode:
#include <SFML/Graphics.hpp>
int main()
{
sf::Window App(sf::VideoMode(), "SFML Window");
return 0;
}
Here is my call stack log:
#0 6E182B40 sf::VideoMode::VideoMode(this=0x403064) (D:\developpement\sfml-master\src\SFML\Window\VideoMode.cpp:40)
#1 0040140B main() (D:\xxx\Programmieren\Projektdateien\Privat\CPP\SFML_Uebung\Quellcode\Test.cpp:6)
Can anybody explain, why that happens? I have no idea what can cause this problem.
Ok, the threading model is win32. My MinGW version uses the DW2 exception model (so I have the libgcc_s_dw2-1.dll). To be sure, I tried both versions of SFML, but the execution error appears every time.
Do you mean with valid video mode something like this.
sf::Window App(sf::VideoMode(200, 200, 32), "SFML Window"); or
sf::Window App(sf::VideoMode::GetDesktopMode(), "SFML Window");
No change with that error still appears.