Hunting down EOutOfResources

前端 未结 8 1794
青春惊慌失措
青春惊慌失措 2020-12-16 18:07

Question:

Is there an easy way to get a list of types of resources that leak in a running application? IOW by connecting to an application ?

I kno

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 18:26

    If they are GDI handle leaks you can have a look at MSDN Magazine January 2003 which uses the tool GDILeaks. Other tools are GDIObj or GDIView. Also see here.

    Another source of EOutOfResources could be that the Desktop Heap is full. I've had that issue on busy terminal servers with large screens.

    If there are lots of file handles you are leaking you could check out Process Explorer and have a look at the open file handles of your process and see any out of the ordinary. Or use WinDbg with the !htrace command.

提交回复
热议问题