Alex Rivera | Logout

How to get GDI objects associated to a process

Asked 2008-10-30T19:04:53.163
14

I am investigating GDI leaks issue in one of our smart-client application. I am looking for a tool (like tasklist) to get the GDI objects associated to a process. I can see the GDI objects in taskmanager, But my requirement to capture it periodically somewhere. For example in a text file.

Edit
Report

1 Answer

8

It should be quite straightforward to write a program to periodically log the number of GDI handles in use by a process, using the GetGuiResources API function.

answered 2008-10-30T20:29:44.443

Your Answer