[Tutor] How to log process handles and GDI objects in python
alan.gauld at btinternet.com
Fri Feb 8 12:31:59 CET 2013
On 08/02/13 09:06, Pai, Yogesh M wrote:
> I would like to know how can I log system process handles and GDI
> objects for debugging memory leak issues in python.
This isn't really a question about learning Python so probably would be
better on the main Python mailing list.
However it will help if you specify things like the OS, the Python
version. Also be clear about what exactly you mean by process handles
and GDI objects. I'm guessing you are talking about Windows but I can't
> I would like to log these inside a loop (stress test) to check if my
> application leaks handles and plot them later for my usage.
I imagine that means you are creating a test lop that creates and
releases these handles? How do you get a handle? can you store it as a
variable? can you print it? can you create a string and print that?
Sorry I can't be of more help but that's a fairly open question
about a very specific problem.
Author of the Learn to Program web site
More information about the Tutor