I have been reading through the tutorials to learn SFML, since I am still a beginner. Recently, whenever I have tried to create a window, I get an error message of
"A buffer overrun has occurred in SFML test.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'."
I have checked the tutorials and various other topics in which people have had this same problem. None of them have been of any help. I am running Visual Studio 2010 Express and SFML 1.6 on a Windows 7 64-bit.
Here is the code I am using that does this:
#include <SFML/System.hpp>
#include <iostream>
#include <SFML/Window.hpp>
int main(int argc, char** argv)
{
sf::Window App(sf::VideoMode::GetMode(0), "SFML Window", sf::Style::Close);
sf::Event Event;
while (App.IsOpened())
{
if (App.GetEvent(Event))
{
if (Event.Type==Event.Closed)
App.Close();
}
}
return EXIT_SUCCESS;
}
I am fairly certain there is probably a ridiculously obvious solution staring me right in the face, but I am simply not experienced enough to see it. If anyone knows or has an idea of how to fix this, I would appreciate your help.[/code]