Replies: 2 comments
-
This is a support request, as described in the template you removed when opening this issue. Please see https://github.com/mhammond/pywin32#support |
Beta Was this translation helpful? Give feedback.
0 replies
-
(But you should google about COM's threading model - it has very strict rules - you can't just pass arbitrary COM objects to arbitrary threads.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given the following small function
Calling testdevices() inside the main thread of Python works well and without any problems. However, calling the same function within a threading.thread like
usbwatch = threading.Thread(target=testdevices)
causes an exception:
Changing slightly the above function by requesting shellcon.CSIDL_CONNECTIONS instead of shellcon.CSIDL_DRIVES raises an exception in BindToObject. Again, this error only occurs when called within a threading.Thread
I downloaded pywin32 two months ago; so this should be a reasonably new version.
Thanks for your help (in advance) ;-)
Beta Was this translation helpful? Give feedback.
All reactions