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

Author Topic: segmentation fault by closing  (Read 2600 times)

0 Members and 1 Guest are viewing this topic.

Kalero

  • Newbie
  • *
  • Posts: 15
    • View Profile
segmentation fault by closing
« on: November 10, 2009, 10:39:06 pm »
hello,
if i close the application i become the message segmentation fault.

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

int main()
{
    // Create the main rendering window
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");

    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear the screen (fill it with black color)
        App.Clear();

        // Display window contents on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


i'am using sfml 1.5 and ubuntu 9.10

know someone what i do wrong?

JannoT

  • Guest
segmentation fault by closing
« Reply #1 on: November 11, 2009, 12:18:36 am »
Newest SFML 2 branch gives me error on exit too with that code.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
segmentation fault by closing
« Reply #2 on: November 11, 2009, 08:30:29 am »
Can you find at which revision the problem appeared?
Laurent Gomila - SFML developer

stephenap09

  • Newbie
  • *
  • Posts: 1
    • View Profile
segmentation fault by closing
« Reply #3 on: November 15, 2009, 09:54:29 pm »
I'm also having this problem.