python com server clean up problem
by Raul Cota other posts by this author
Nov 28 2005 9:59AM messages near this date
view in the new Beta List Site
Python streaming server
|
Re: python com server clean up problem
I hope somebody here can help me out here.
I have a Python COM server which I call from Excel. The Python object is a bit complex and i
ts
__del__ method is not called when the reference count to the object from within Excel go to
0. For
this reason I have a CleanUp method that makes sure all the resources are released. My probl
em is
that I want to make sure that this CleanUp method is always called when there are not more
references to the COM server.
So, my question is: is there a way to know when the reference count of the COM object goes t
o 0 ?
For example, when Excel does not use it anymore and the variable is set to Nothing?
I looked quite a bit in the archive of the mailing list with no luck.
thanks,
Raul
_______________________________________________
ActivePython mailing list
ActivePython@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
Thread:
Raul Cota
Trent Mick
Raul Cota
|