[python-win32] Releasing a Com object

2009-01-20 Thread Gary Scorby
I'm having trouble releasing a com object. In the past I've always set the instance to None and life is good, as in the example below. I'm currently working with an object I can't release with this method. Anybody have a different/better way to handle this? Thanks Gary # example xxx

Re: [python-win32] Releasing a Com object

2009-01-20 Thread bob gailer
Gary Scorby wrote: Im having trouble releasing a com object. In the past Ive always set the instance to None and life is good, as in the example below. Im currently working with an object I cant release with this method. Anybody have a different/better way to handle this?

Re: [python-win32] Releasing a Com object

2009-01-20 Thread bob gailer
Gary Scorby wrote: You are correct, it no longer refers to the object. I should have added a few more details. Windows still believes the object is in use, in this case its a dll. Nothing else can be done with the dll until Python is completely shut down. None of the other dll

Re: [python-win32] Releasing a Com object

2009-01-20 Thread Gary Scorby
in the past have had this problem. Thanks Gary From: bob gailer [mailto:bgai...@gmail.com] Sent: Tuesday, January 20, 2009 11:05 AM To: Gary Scorby Cc: python-win32@python.org Subject: Re: [python-win32] Releasing a Com object Gary Scorby wrote: I'm having trouble releasing a com object

Re: [python-win32] Releasing a Com object

2009-01-20 Thread Greg Antal
Try del xxx Even when you invoke whatever "stop" or "close" methods that object offers, you sometimes still have to delete the object to make the application shut down. - Greg Antal Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 San Diego,

Re: [python-win32] Releasing a Com object

2009-01-20 Thread Gary Scorby
, January 20, 2009 12:59 PM To: python-win32@python.org Subject: Re: [python-win32] Releasing a Com object Try del xxx Even when you invoke whatever stop or close methods that object offers, you sometimes still have to delete the object to make the application shut down. - Greg Antal

Re: [python-win32] Releasing a Com object

2009-01-20 Thread Dahlstrom, Roger
PM To: Greg Antal; python-win32@python.org Subject: Re: [python-win32] Releasing a Com object That was my original attempt. No luck with that either. This sucker has nine lives. Thanks for your response. Gary From: python-win32-bounces+gary.scorby=harlandfs@python.org [mailto:python