0 Members and 2 Guests are viewing this topic.
#include <SFML/Window.hpp>#include <SFML/Graphics.hpp>int main() { sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window"); bool Running = true; sf::Event Event; while (Running) { while (App.GetEvent(Event)) { if (Event.Type == sf::Event::Closed) Running = false; if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Key::Escape)) Running = false; } App.Display(); } return EXIT_SUCCESS;}
Run-Time Check Failure #2 - Stack around the variable 'App' was corrupted.