Finally I solved the problem using the attached function to release the
com object
def ReleaseDocumentReference(self,doc):
if not is_tracked( doc._oleobj_):
x=doc._oleobj_
if is_tracked(x):
print Now x is traked
addr =
[sorry for top post]
CPython uses reference counting; when the reference count drops to 0, the
object is deleted and its memory returned to the heap.
CPython’s garbage collector is there to attempt to resolve situations where the
reference count is not being allowed to drop to 0 (such as via