python - win32com Dispatch Interfaces 0 COM objects alive. Session with server NO CLOSE -


after code finishes have :

print "exit - leaving interfaces %d/%d com objects alive" % (pythoncom._getinterfacecount(), pythoncom._getgatewaycount()) # exit - leaving interfaces 0/0 com objects alive import time time.sleep(2) gc.collect() gc.collect() 

why session server never closes, after gc.
mind exploding
can't close comobject invoking _obj.closesession()_ etc. because comobject not have similar method
can write code, think excessive, because think objects correct release interfaces (interfaces 0/0 com objects alive)


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -