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 be sure.
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. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor