SFML community forums

Help => Window => Topic started by: Mimi74 on October 02, 2011, 01:24:40 pm

Title: Program crash
Post 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:

Code: [Select]

#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  :)
Title: Program crash
Post by: Laurent on October 02, 2011, 01:45:19 pm
Quote
I am french, i'm novice in english

There's a french forum (http://www.sfml-dev.org/forum-fr/) ;)

Quote
My program crashes

Is there any error message? Have you tried to run the debugger?

Quote
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.
Title: Program crash
Post by: Hiura on October 02, 2011, 01:45:36 pm
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 ? ...
Title: Program crash
Post by: Nexus on October 02, 2011, 01:46:16 pm
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.