Application closes immediately after launch. #11

Open
opened 2020-03-22 16:12:18 -04:00 by kennyrkun · 0 comments
kennyrkun commented 2020-03-22 16:12:18 -04:00 (Migrated from github.com)

sf::Event::EventType::Closed is being reported by display->pollEvent(); during the first few frames of the application being open.

This could perhaps be due to the nature of the function. I suspect the function is of return type int and returns 0 when no event has been captured. The enum code for sf::Event::EventType::Closed is I believe 0, thus causing the application to believe it is receiving a shutdown code. This will require further investigation.

`sf::Event::EventType::Closed` is being reported by `display->pollEvent();` during the first few frames of the application being open. This could perhaps be due to the nature of the function. I suspect the function is of return type `int` and returns 0 when no event has been captured. The enum code for `sf::Event::EventType::Closed` is I believe 0, thus causing the application to believe it is receiving a shutdown code. This will require further investigation.
Sign in to join this conversation.
No description provided.