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
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
: Tuesday, 11 September 2012 11:35 PM
To: python-win32@python.org
Subject: Re: [python-win32] how can I do marshall.ReleaseComObject in python ??
[SEC=UNCLASSIFIED]
I try with both method but with no result:
the code is this :
def GerPropValue2(self,name):
try:
oiDoc,ent
[sorry for top-post]
You probably need to release the Python object that is wrapping the COM object.
Given a variable x holding a COM object reference, either:
del x
or
x = None
should force release of any COM object reference.
Which to use depends on taste and context - the latter