1
Window / App keeps crashing before or while creating the window?
« on: October 18, 2008, 11:40:08 pm »
THis is under VS2008 and windows xP
heres the simple code I'm using
The console comes up and then I get an error message saying an unexpected error has occured.
heres the simple code I'm using
Code: [Select]
#include <SFML/Window.hpp>
int main()
{
sf::Window Window(sf::VideoMode(800, 600, 32), "Simple Window.");
bool running = true;
while (running)
{
sf::Event Event;
while (Window.GetEvent(Event))
{
if (Event.Type == sf::Event::Closed)
running = false;
}
Window.Display();
}
Window.Close();
return (0);
}
The console comes up and then I get an error message saying an unexpected error has occured.