Win32 application windows eventually stop painting on Windows 7

前端 未结 3 660
梦毁少年i
梦毁少年i 2021-01-13 00:31

I have a large, complex application written in C++ (no MFC or .NET). The client that uses the software most aggressively will, within an hour or so of starting it, get to a

3条回答
  •  执念已碎
    2021-01-13 00:55

    I'd bet that the application is leaking GDI objects, and when the GDI dedicated space for this process is exhausted, it can no longer paint itself.

    You can check if this is the case by adding to the Windows Task Manager (or any other process manager such as Process Monitor) the column GDI Objects and see if this number grows unbounded with time.

提交回复
热议问题