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

Author Topic: Window tutorial code freezes when run  (Read 1287 times)

0 Members and 1 Guest are viewing this topic.

pentex

  • Newbie
  • *
  • Posts: 7
    • View Profile
Window tutorial code freezes when run
« 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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Window tutorial code freezes when run
« Reply #1 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.
Laurent Gomila - SFML developer

pentex

  • Newbie
  • *
  • Posts: 7
    • View Profile
Window tutorial code freezes when run
« Reply #2 on: October 31, 2010, 10:04:18 pm »
Ahhh I was pulling my hair out over nothing... thanks a lot! :)

 

anything