SFML community forums
Bindings - other languages => DotNet => Topic started by: Kasko on December 14, 2018, 07:13:29 pm
-
I tried to separate the event loop and the main loop so that the window continues rendering while dragging the window. I have achieved this through another thread.
But when I am dragging the window and meanwhile the code calls window.Close() the window stays open until I release the left mouse button.
-
So, what's the problem here exactly? When would a user be exiting the application while simultaneously dragging the applications window?
Anyway, window events are "paused" until the window is released (as you have noticed).
Off-topic Note: I'd recommend creating a simple title for threads, and actually asking the question in the thread itself.
-
Your event loop is probably waiting for the message to return, are you doing message peek?
Post your windows event loop code.