应用焦点时应用无响应 [英] App not responding when getting focus back

查看:67
本文介绍了应用焦点时应用无响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个DirectX11应用程序在失去它后重新获得焦点时会变得没有响应(应用程序在窗口标题中获得"Not Responding"消息)。为了重现这个问题,重点必须丢失超过几美元b $ b秒。此外,问题似乎只有当应用程序处于窗口+边框模式或全屏模式时才会出现(基本上,它不会发生在窗口无框架模式中)。 

We have a DirectX11 app which becomes unresponsive when getting back focus after having lost it (the application gets the "Not Responding" message in the window title). In order to reproduce the issue, the focus has to be lost for more than a few seconds. Also, the problem seems to occur only when the app is in windowed+bordered mode or fullscreen mode (basically, it doesn't happen in windowed-borderless). 

当我们得到重点关注,应用程序无响应,通常在等待几分钟后就会响应。

When we get focus back and the app becomes unresponsive, it usually becomes responsive after a few minutes of waiting.

另外值得一提的是,问题发生在Windows 7上,而不是在Windows 10上。 

Also worth mentioning is that the issue happens on Windows 7, but not on Windows 10. 

对我而言,它看起来像资源分配问题。就像,当失去焦点一段时间后,Windows决定从应用程序中拿走一些资源。当重新获得焦点时,它会回收资源,但这需要花费很多时间。虽然我只是猜测
。 

To me it looks like a resource allocation issue. It is like, when losing focus for some time, Windows decides to take away some resources from the app. When getting the focus back, it gives back the resources, but that takes a lot of time. Only speculation on my part though. 

欢迎任何有关此问题的帮助。

Any help on this issue would be welcome.

问候,

Nicolas

推荐答案

感谢您在此处发帖。

>>当我们获得焦点并且应用程序无响应时,它会在等待几分钟后响应。

另外值得一提的是,问题发生在Windows 7上,但不会发生在Windows 10上。


对我而言,它看起来像资源分配问题。就像,当失去焦点一段时间后,Windows决定从应用程序中拿走一些资源。当重新获得焦点时,它会回收资源,但这需要花费很多时间。虽然我只猜测

很抱歉,我们无法重现您的问题。请使用OneDrive提供更多步骤或简单样本以重现它。 

Sorry that we couldn't reproduce your issue. Please provide more steps or simple samples with OneDrive to reproduce it. 

您的理解与合作将不胜感激。

Your understanding and cooperation will be grateful.

最诚挚的问候,

Baron Bi


这篇关于应用焦点时应用无响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆