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

Author Topic: Problem with SFML window not showing  (Read 2068 times)

0 Members and 1 Guest are viewing this topic.

shiroaisu

  • Newbie
  • *
  • Posts: 28
    • View Profile
Problem with SFML window not showing
« on: November 06, 2010, 11:45:36 pm »
Hi

I have made a program using SFML and i tested with many computers and it worked fine, but there was one computer in which it didnt worked.

i then made a simple test program to try again with something simple, heres the program:

Code: [Select]
#include <SFML/Graphics.hpp>
#include <iostream>

using namespace std;

string test;

int main()
{
    sf::RenderWindow window(sf::VideoMode(1024, 768, 32), "Project: Nova 6");
    cout <<"Its done!";

    while(1)
    {
        window.Clear(sf::Color(0, 0, 0));

        window.Display();
    }
}


as i said before, it works with the other computers just fine, but when i get to this computer the program runs, the conssole apears but the game window cant be selected. the game window is created and it exists, but i can only see it on the taskbar.

The OS is windows 7 64 bits, i first tought this could be the problem, but then i tested with other machines with the same OS and it worked fine.

The dlls inside the executable folder are:
sfml-window.dll
sfml-system.dll
sfml-graphics.dll
sfml-audio.dll
openal32.dll
libstdc++-6.dll
libgcc_s_dw2-1.dll

Someone pls help me here, what am i doing wrong??

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Problem with SFML window not showing
« Reply #1 on: November 07, 2010, 12:02:22 am »
You must at least call GetEvent, otherwise your window can't process the OS events and may stay frozen.
Laurent Gomila - SFML developer