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
[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
[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