SFML community forums
Help => Window => Topic started by: Mimi74 on October 02, 2011, 01:24:40 pm
-
Hello,
I am french, i'm novice in english :oops:
My program crashes, i don't know why...
Here's my code:
#include <SFML/Window.hpp>
using namespace sf;
int main()
{
Window App(VideoMode(800, 600, 32), "SFML Window");
bool Running = true;
while(Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
Thanks :)
-
I am french, i'm novice in english
There's a french forum (http://www.sfml-dev.org/forum-fr/) ;)
My program crashes
Is there any error message? Have you tried to run the debugger?
Here's my code
It's not supposed to crash, but you should at least add an event loop (next tutorial) so that the window is not frozen.
-
Without any further information we won't be able to help you much.
What do you mean by "crash" ? What append ? Which line make your application crash ?
What version of SFML are you using ? On which OS ? How did you compile your code ? ...
-
There is a french forum ;)
How does your program crash? It should loop endlessly. But you ought to poll the windows events, otherwise the application might not respond.