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

Author Topic: Program crash  (Read 1949 times)

0 Members and 1 Guest are viewing this topic.

Mimi74

  • Newbie
  • *
  • Posts: 11
    • View Profile
Program crash
« 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  :)
Avant, je faisais du C.
Mais ça, c'était avant! :p

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Program crash
« Reply #1 on: October 02, 2011, 01:45:19 pm »
Quote
I am french, i'm novice in english

There's a french forum ;)

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.
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Program crash
« Reply #2 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 ? ...
SFML / OS X developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Program crash
« Reply #3 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: