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

2012-09-11 Thread Matteo Boscolo
I try with both method but with no result: the code is this : def GerPropValue2(self,name): try: oiDoc,ent=self._getCurrentEnt if ent!=None: props=ent.Properties(True) return aaa # Go out here for testing pourpuse

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

2012-09-11 Thread Randy Syring
I'm not sure how this applies to COM and the python interface to it, but just setting a value to None doesn't usually force the object to go away in Python. That won't happen until it is garbage collected, which you can force if needed: http://docs.python.org/library/gc.html

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

2012-09-11 Thread Andrew MacIntyre
[sorry for top post] I suspect that your problem relates to what objects are being retained by self._getCurrentEnt. - These thoughts are mine alone! - Andrew MacIntyre Operations Branch tel: +61 2 6219 5356 Communications Infrastructure Division

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