I have a module which runs COM calls asynchronously in helper threads, but
after migrating to a WinXP machine, it has a strange interaction with import.
If the code is run in the dynamic context of an import, all COM access just
hangs.

I've tried three cases:

1.  a.py imports b.py, and *during* the import, b.py attempts to run some COM
calls in a separate thread.  The COM calls just hang.

2. a.py imports b.py, but this time b.py creates a function around the COM
calls.  This function is called by a.py *after* the import.  This works.
(but if a.py was executed in the context of an import, then it is broken
again)

3. Same as case 1, but no threads are used.  This works.

I'm at wits end about why this can be, and I'm probably just going to change
to using separate processes rather than separate threads.  Nonetheless, I
would love to here any possible explanations for what seems to me very
strange behavior.

Thanks -

-rusty

-------------------------------------------------------
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to