1
General / Visual Studio Buffer Overrun
« on: January 02, 2012, 08:59:13 pm »
Thank you so much! It works now perfectly. I am glad that there are some people who know what they're doing when it comes to this, because I certainly don't.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
"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'."
#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;
}