开发者

Program interface hang when restoring from minimized state

What can cause the interface of program "hang" when user restores it or just comes to the computer after some time, or accessing the computer on which the program is run with same remote desktop user twice?..The program doesn't hang (process is responding), but interface becomes unresponsive. User can minimize/maximize it, but cant operate with its contents. I, myself, cant even reproduce such hang when debugging program. But all customers report it from time to time in all the programs i wrote.

May be its fault of some third party dll's we use?..In all my software i used: Devexpress(grid, report, mdimanager), NLog, Stimulsoft Reports(reports). For opening new tabs in mdimanager i usually use BackgroundWorker, but i dont think it's some sort of his synchronization problem, because but appears spontaneously and doesn't throw any exception; just interface hang and that's all.

May be my question is silly, but i cant find any information about such bug or just cant describe it properly in search request.

Will b开发者_如何学JAVAe grateful for any help or suggestions.


Without seeing code its hard to say, but based on the behavior it sounds like a threading issue in your UI code. Something is causing it to deadlock. Are you updating the UI from the background worker when the UI is restored. If you are updating the UI from another thread you must use an Invoke method. You cannot update the UI thread from another thread.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜