为什么我的Windows程序会死于其冻结的(蓝灰色)窗体或窗口? [英] Why does my windows program die with its frozen (bluish gray) Forms or windows?

查看:97
本文介绍了为什么我的Windows程序会死于其冻结的(蓝灰色)窗体或窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上的delphi程序(对于.NET不适用)似乎连续运行了几天,然后该程序冻结了,其所有窗口都涂有蓝灰色,好像它的窗口被禁用了一样.您完全不再拥有对该程序的控制权,而不得不终止它的进程并重新启动.您不需要重新启动系统本身.

My delphi program (NOT for .NET) on windows 7 seems to be running for couple of days straight and then the program sort of freezes with all of its windows painted with blueish grey color as if its windows are disabled. You simply don't have control over the program anymore but has to kill its process and start it up again. You don't need to reboot the system itself.

有人经历过或类似的经历吗?如果是这样,您是如何解决或尝试解决它的?

Has anyone experience this or anything similar? If so, what did you do to resolve or try to resolve it?

谢谢

推荐答案

蓝色可能是默认的窗口颜色,这意味着窗口不再绘制自身.这与程序不再响应任何输入的另一种症状是一致的.这意味着它不处理任何窗口消息.

The bluish grey color is probably the default window color, meaning the window is no longer painting itself. This is consistent with the other symptom that the program no longer responds to any input. This means it isn't processing any window messages.

最简单的调试方法是在调试器中运行程序,并在挂起该程序时将其停止,然后查看其位置.

The easiest way to debug is to run the program in a debugger, and when it's hung just stop it and see where it's at.

如果发生内存泄漏,最终可能会导致进程空间内存不足,并且程序可能无法正确响应该情况.检查任务管理器以查看其正在使用的内存量.

If you have a memory leak you may eventually run out of memory in your process space, and it's possible that the program doesn't properly respond to that condition. Check Task Manager to see the amount of memory it's using.

这篇关于为什么我的Windows程序会死于其冻结的(蓝灰色)窗体或窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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