I was doing some testing, and I noticed this curiosity. When I would maximize my window, I would get a:
"Unhandled exception at 0x101fba76 in GameTestingSFML.exe: 0xC00000FD: Stack overflow."
The example included is essentially minimal, as it's just a slight derivative of the most basic example of SFML.
#include <SFML/Graphics.hpp>
int main(void){
//Variable Definitions
sf::RenderWindow window(sf::VideoMode::getFullscreenModes()[7], "SFML works!", 7);
window.setFramerateLimit(60);
sf::CircleShape shape(256.f);
shape.setFillColor(sf::Color(191, 255, 127, 255));
shape.setPointCount(48);
//The Game Loop
while (window.isOpen()){
sf::Event event;
//The Event Loop
while (window.pollEvent(event)){
//Event type cases
switch(event.type){
//Window closed
case sf::Event::Closed:
window.close();
break;
//Key pressed
case sf::Event::KeyPressed:
//Keypress cases
switch(event.key.code){
//Escape key pressed
case sf::Keyboard::Escape:
window.close();
break;
}
break;
}
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}