Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Can I use win32 COM object in a thread?

Thread Tools

Can I use win32 COM object in a thread?

Posts: n/a
When I try to call a method of COM object, it return error about "There
wasn't 'CoInitialize' call", or if I use thread, I have to access COM
object methods in other way?

thanks for any help

Reply With Quote
Posts: n/a
Sorry for post, answer was near ... just do search

2. Ixokai

From: "Ixokai" <(E-Mail Removed)>
Mon, 9 Feb 2004 11:05:08 -0800

Basically, adodbapi uses COM, and COM and threads require a bit of
apparently. Your webkit thing may be using a thread to handle stuff.

import pythoncom
.... code ...

You need to call pythoncom.CoInitialize() once for each thread...
something about sys.coinit_flags = 0 (or 1) that may be nessecary but I

don't know what they mean precisely


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
use Win32::TieRegistry if ($^O =~ /win32/i) Perl Misc 6 06-01-2006 09:07 PM
win32 process information, using win32 extension Java and Swing Python 1 10-24-2005 09:13 PM
RE: win32 process information, using win32 extension Tim Golden Python 0 10-21-2005 02:18 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
Hmmm... problems with CPAN (MakeMaker?) on Win32+MSYS or Win32+UnixUtils and others Alex Lyman Perl 0 03-07-2004 05:10 PM