alex denham p2jjphotmailcom hi first import pythoncom directly import pythoncom far put pythoncomcoinitialize im certain think top start whole application threaded call thread start initializes com library current thread identifies concurrency model singlethread apartment sta applications must initialize com library call com library functions httpmsdn2microsoftcomenuslibraryms678543vs85aspx hope helps alex wboatrupusvjuadgwbchdelaruecom kpitckaew45pythonorg date thu 24 apr 2008 161517 0100 subject pythonwin32 apache mod_python win32com hello everyone im developing web application using mod_python apache web server application handle xml files im using win32com msxml problem apache spawns new process thread sure wether ist process thread think thread per http request multiple users generated requests time new request first one returned multiple threads running thats win32com code crashing currently every request code following example return win32comclientdispatchmsxml2domdocument60 get empty msxsml dom object multiple requests time get following error file cprogram filesapache software foundationapache22tcrexceptionmanagerdatadatabase_librarydatabasepy line 24 __init__ self__configfileschema self__xsdschemacache file cprogram filesapache software foundationapache22tcrexceptionmanagerdatadatabase_librarydatabasepy line 1774 __xsdschemacache return win32comclientdispatchmsxml2xmlschemacache60 file cprogram filespython25libsitepackageswin32comclient__init__py line 95 dispatch dispatch username dynamic_getgooddispatchandusernamedispatchusernameclsctx file cprogram filespython25libsitepackageswin32comclientdynamicpy line 98 _getgooddispatchandusername return _getgooddispatchidispatch clsctx username file cprogram filespython25libsitepackageswin32comclientdynamicpy line 78 _getgooddispatch idispatch pythoncomcocreateinstanceidispatch none clsctx pythoncomiid_idispatch com_error 2147221008 coinitialize called none none ive read already bit mailing list someone mentioned one need call pythoncomcoinitialize pythoncomcouninitialize dont know exactly call functions wether thatll solve problem also import win32compythoncom get error module pythoncom exist would really happy someone could help tell make win32com work multiple threads greetings dominique _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 _________________________________________________________________ play andrex hello softie game win great prizes httpwwwthehellosoftiegamecouk fri 08 aug 2008 013725 0100 pythonwin32 apache mod_python win32com