Re: [python-win32] how can I do marshall.ReleaseComObject in python ?? [SEC=UNOFFICIAL]

2012-09-12 Thread Matteo Boscolo
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 =

Re: [python-win32] how can I do marshall.ReleaseComObject in python ?? [SEC=UNOFFICIAL]

2012-09-11 Thread Andrew MacIntyre
[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