Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML window freezes while it waits for data to be received  (Read 1997 times)

0 Members and 1 Guest are viewing this topic.

ultrageek

  • Newbie
  • *
  • Posts: 6
    • View Profile
SFML window freezes while it waits for data to be received
« on: February 25, 2014, 11:41:38 am »
Hi guys.

Although I've already set my TCPSocket to non-blocking mode, the window still freezes (unresponsive) every single time when it is waiting for data to be received. I had tried to solve this problem with thread (with sleep and pause function) too but it didn't work though.  :(

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML window freezes while it waits for data to be received
« Reply #1 on: February 25, 2014, 11:51:40 am »
Windows will mark your application as "unresponsive" if you don't process events within a certain amount of time (10-20s). I've no idea how you handle things (since you didn't provide any information), but you have to handle events if you want to prevent your application from being marked as unresponsive.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/