text_combined: mike driscoll szgupvesgcomarshalliaus wboatrupusvjuadgwbchdelaruecom wrote 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 elf__xsdschemacache file cprogram filesapache software foundationapache22tcrexceptionmanagerdatadatabase_librarydatabasepy line 1774 __xsdschemacache return win32comclientdispatchmsxml2xmlschemacache60 file cprogram filespython25libsitepackageswin32comclient__init__py line 95 dispatch dispatch username ynamic_getgooddispatchandusernamedispatchusernameclsctx file cprogram filespython25libsitepackageswin32comclientdynamicpy line 98 _getgooddispatchandusername return _getgooddispatchidispatch clsctx username file cprogram filespython25libsitepackageswin32comclientdynamicpy line 78 _getgooddispatch idispatch ythoncomcocreateinstanceidispatch 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 issue using wmi thread basically ended calling coinitialize called wmi object function couninitialize objectfunction returned however youre messing xml would recommend one many excellent xml parsing libraries python ive used included dom interface well lxml objectoriented ive even used pyparsing one scriptsits pretty new developer responsive good examples even small ebook ideas mike _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 thu 07 aug 2008 194548 0500 pythonwin32 apache mod_python win32com