SFML community forums

Help => Window => Topic started by: pentex on October 30, 2010, 12:48:52 pm

Title: Window tutorial code freezes when run
Post by: pentex on October 30, 2010, 12:48:52 pm
Hi all, I've just started using SFML but for some reason when I run the Window-Window.cpp tutorial code the window freezes as soon as it appear. I can't minimize it or anything and have to end it throug task manager.  I've tried running the very first SFML clock code and that runs fine inside a consol window so it seems that I've set SFML up okay.

I'm using visual studio 2008 and running on Windows 7 64bit btw.

I've tried putting the code in different types of projects, I've tried a Win32 project, and just a basic consol project. I've also put the code in a blank project of both types (window and consol) and that doesn't work. I'm linking to the sfml-window-s.lib, sfml-system-s.lib and sfml-main.lib. I've tried linking to the first two non-statically, I've tried switching between debug and release mode and adding the -d suffix accordingly.

Any ideas would be much appreciated - thanks!
Title: Window tutorial code freezes when run
Post by: Laurent on October 30, 2010, 01:12:24 pm
This code is not supposed to do anything else than showing a frozen window. Wait until the next tutorial (handling events) to be able to interact with the window.
Title: Window tutorial code freezes when run
Post by: pentex on October 31, 2010, 10:04:18 pm
Ahhh I was pulling my hair out over nothing... thanks a lot! :)