BeginInvoke / ResumeForegroundAsync seem to hang if the application is not active
Posted: 31 Mar 2020, 14:17
I've seen this is two scenarios.
1.) We have a countdown timer that runs when I hit "shutdown" in a menu. The timer counts down from 5 to 0 and then the application closes.
--> We have seen that, during this countdown, if we switch to another application the countdown stops. All it takes is a MouseOver on the original application to resume the countdown.
2.) I just created a second application called JoystickEmulator that sends positions to our main application. The message are received and then a BeginInvoke call is made in the main application to update some elements positions. They don't update until MouseOver on the original application.
Any ideas on this one?
Thanks!
1.) We have a countdown timer that runs when I hit "shutdown" in a menu. The timer counts down from 5 to 0 and then the application closes.
--> We have seen that, during this countdown, if we switch to another application the countdown stops. All it takes is a MouseOver on the original application to resume the countdown.
2.) I just created a second application called JoystickEmulator that sends positions to our main application. The message are received and then a BeginInvoke call is made in the main application to update some elements positions. They don't update until MouseOver on the original application.
Any ideas on this one?
Thanks!