[python-win32] passing VB Form to python keeps VB process from exiting

Rickey Chevrie rchevrie@austin.rr.com
Fri, 13 Apr 2001 09:56:12 -0500


I don't know for sure, but it sounds like there is an extra AddRef() being
held
for the form COM object.    I would look to see if there is some way for you
to call Release() on the COM object.  Good luck.

Regards,
Rickey Chevrie
Dripping Springs, Texas

----- Original Message -----
From: "Gregory P. Smith" <greg@electricrain.com>
To: <python-win32@python.org>
Sent: Friday, April 13, 2001 1:11 AM
Subject: [python-win32] passing VB Form to python keeps VB process from
exiting


> We're trying to use COM as a Local Server interface to our python code
> and are running into an annoying problem.  If we ever pass the VB Form
> object to a python function, the VB application never fully exits
> (even after it has closed down the COM local server object).  This
> appears to be true even if the vbForm passed into python is never used
> (ie: its just a dummy function parameter; change the VB code to pass 0
> instead and the program exits fine, change it to pass Me and it won't
> exit).
>
> any ideas?
>
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32