gpt4 book ai didi

windows - “程序没有响应”是什么意思?

转载 作者:可可西里 更新时间:2023-11-01 14:41:53 26 4
gpt4 key购买 nike

此消息是什么意思,是否有一个 API 可以“响应”Microsoft Windows 状态查询?

我正在寻找技术答案。谢谢:)

最佳答案

这意味着程序无法为其消息队列提供服务。来自documentation :

If a top-level window stops responding to messages for more than several seconds, the system considers the window to be not responding. In this case, the system hides the window and replaces it with a ghost window that has the same Z order, location, size, and visual attributes. This allows the user to move it, resize it, or even close the application. However, these are the only actions available because the application is actually not responding. When in the debugger mode, the system does not generate a ghost window.

通常这意味着程序的主线程很忙并且没有足够频繁地调用 GetMessage。长时间运行的任务应该在主 UI 线程以外的线程上执行。

关于windows - “程序没有响应”是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30592746/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com