SFML community forums
Help => Window => Topic started by: slotdev on November 13, 2012, 01:15:20 pm
-
Hi
My game's 2nd window - which requires no event handling, it is just displaying statistics/information - "crashes" with "game.exe has stopped responding" when you click on the window. The thing is, the window keeps rendering even with Windows' semi-transparent white over the top for when it "crashes". So my guess is, its just an event handling issue.
Is this known, and if so, whats the fix? I guess just add a event handler to the other window?
Thanks
Ed
-
From tutorial:
A mistake that people often do is to forget the event loop, because they don't care yet about handling events (they use real-time inputs instead). But without an event loop, the window won't be responsive; indeed, the event loop has two roles: in addition to provide events to the user, it gives the window a chance to process its internal events too, which is required so that it can react to move or resize user actions.
Sometimes I wonder why I waste so much time writing tutorials. It blocks the release of SFML 2.0 and people never read them anyway.
-
Sorry Laurent :(
I guess people are lazy, and just want the answers quickly. I am lazy, this is for sure. Thanks for your help anyway :)