Window Manager Windows 7 regularly discovers that my WPF app is what he had seen , prividyaet it and issues a message not responding. I have been using the application for several weeks and have not seen it, but a user with the same equipment as me says that he regularly receives it.
Everything that can be run in a task in another thread, so I'm not sure where to start looking for a problem. If the user is waiting for the application to respond, it is quickly restored, so I assume that the problem is with the GUI thread, which sometimes takes a little more than 5 seconds.
Is it possible to detect when DWM considers the application to freeze, so I can write a stack trace?
source
share