Re: [python-win32] Apache & mod_python & win32com

2008-04-27 Thread Dominique.Holzwarth
The problem with apache tho is, that it starts the thread itself and I don't know wether my script runs on a new thread or not. I did some testing with calling CoInitialize at the start of my scripts and CoUnitialize at the end of my script (as suggested by others before) and it seemed to work..

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Dominique.Holzwarth
Thank you Rober & Alex for the answers :-) But I must admit that I'm still bit uncertain about that whole issue. As I understood apache it is creating a thread for every request anyway, or not? (and yes, on windows the MPM winnt is used) so wouldn't it be enough to just call CoInitialized() at th

[python-win32] Apache & mod_python & win32com

2008-04-24 Thread Dominique.Holzwarth
Hello everyone I'm developing a web application using mod_python and the apache web server. That application has to handle xml files and for that I'm using win32com with with MSXML. My problem is, that apache spawns a new process / thread (not sure wether ist a process or thread. I think it's