SFML community forums

Help => General => Topic started by: Kalero on November 10, 2009, 10:39:06 pm

Title: segmentation fault by closing
Post by: Kalero 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?
Title: segmentation fault by closing
Post by: JannoT on November 11, 2009, 12:18:36 am
Newest SFML 2 branch gives me error on exit too with that code.
Title: segmentation fault by closing
Post by: Laurent on November 11, 2009, 08:30:29 am
Can you find at which revision the problem appeared?
Title: segmentation fault by closing
Post by: stephenap09 on November 15, 2009, 09:54:29 pm
I'm also having this problem.