You have to make sure that your VB code releases all references to the COM
objects. You also have to ensure that there are no circular references -
for example, if you have 2 COM objects, and each of them has a reference to
the other, they will never be released. In this case, you really need a
"close" method that explicitly drops the reference.
The value of pythoncom._GetGatewayCount() will tell you how many reference
to PythonCOM objects are still outstanding. This must hit zero before
Python will terminate.
Mark.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Francesco Franzh
> Sent: Friday, 8 June 2001 2:35 AM
> To: [EMAIL PROTECTED]
> Subject: com server shut down
>
>
> i have a python com (localserver)
> i get an istance in vb script with CreateObject('MyCOM')
> when the application finish the system does not release the server
> (i can see it among the active task)...
> how can i shut it down?
>
> franz
> _______________________________________________
> ActivePython mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activepython
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython