kennyrkun / SFLCARS

Simple Fast Library Computer Access Retrieval System - real smart home

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application closes immediately after launch.

kennyrkun opened this issue · comments

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.