Search code examples
windowsdelphiwin32-process

Why does my windows program die with its frozen (bluish gray) Forms or windows?


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?

Thanks,


Solution

  • 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.