Hi Everyone -

I'm seeing Python hang on exit after a failed IIS GetObject() call,
similar to what is described at
http://mail.python.org/pipermail/python-win32/2005-October/003819.html.
 For instance, the code

import win32com.client
import pywintypes
try:
    testobj=win32com.client.GetObject("IIS://localhost/doesnotexist")
except pywintypes.com_error:
    print "Could not find directory"

will except correctly and print the message, but the Python
interpreter will never exit.  This appears to only happen when the
following error occurs

pywintypes.com_error: (-2147024893, 'The system cannot find the path
specified.', None, None)

Trying pure nonsense arguments in the GetObject or other generated
error ids allow the interpreter to exit correctly.  I suppose the
query to IIS is not cleaning up correctly, but I can't determine what
is causing Python to hang.

I should note that this is using Python 1.5.2 (and an older version of
pywin32 for that release) - unfortunately upgrading is not a viable
solution at this time.

Thanks in advance for any help!

Todd
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to