[python-win32] info on _GetInterfaceCount

Mark Hammond skippy.hammond at gmail.com
Mon Oct 1 03:41:15 CEST 2012


On 28/09/2012 10:42 PM, Matteo Boscolo wrote:
> this is the log of part of my application
>
> DEBUG:root:__DEL__
> DEBUG:root:pythoncom._GetInterfaceCount(): 4
> DEBUG:root:pythoncom._GetGatewayCount():   0|
> DEBUG:Root:pythoncom.CoUninitialize()|
> DEBUG:root:pythoncom._GetInterfaceCount(): 4
> DEBUG:root:pythoncom._GetGatewayCount():   0
>
> as you can see the GetInterfaceCount is still at 4 ..
> there is a way to know witch object are the 4 that came from the
> GetInterfaceCount ?

Not directly - only a simple counter is tracked, not a list of what the 
objects are.  If you are lucky, you might be able to use the 'gc' module 
to locate all live objects and see what you can find alive that "looks" 
like a COM object (but even that probably will not tell you where the 
reference actually lives)

Mark

>
> regards,
> matteo
>
>
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>



More information about the python-win32 mailing list