I don't see why this would have anything to do with IIS vs. Apache.  Either
way, WebKit runs as a completely separate process.

Also, in WebKit applications, instead of using sys.coinit_flags = 0 and
pythoncom.CoInitializeEx() in your code, you should instead set EnableCOM to
1 in your AppServer.config file.  This will cause WebKit to do this for you
(through COMKit).

- Geoff

> -----Original Message-----
> From: Stefan Kuzminski [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 6:59 PM
> To: [EMAIL PROTECTED];
> '[EMAIL PROTECTED]'
> Subject: [Webware-discuss] COM object server stopping
> 
> 
> Hi, 
> 
> I'm using Webware (.7) with IIS and ActiveState's  2.2.1 
> python.  I get this
> occasional exception calling COM from the appserver, it 
> didn't happen when I
> was running with Apache, but I try to make my corporate 
> manger happy and use
> IIS and see what I get...:(
> 
> 
>   File "c:/pmt/reporting/src\fi_db_info.py", line 27, in __init__
>     self.db = Dispatch(r'ADODB.Connection')
>   File 
> "C:\Python22\Lib\site-packages\win32com\client\__init__.py", line 92,
> in
> Dispatch
>     dispatch, userName =
> dynamic._GetGoodDispatchAndUserName(dispatch,userName,c
> lsctx)
>   File 
> "C:\Python22\Lib\site-packages\win32com\client\dynamic.py", line 81,
> in _
> GetGoodDispatchAndUserName
>     return (_GetGoodDispatch(IDispatch, clsctx), userName)
>   File 
> "C:\Python22\Lib\site-packages\win32com\client\dynamic.py", line 72,
> in _
> GetGoodDispatch
>     IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
> pythoncom.II
> D_IDispatch)
> com_error: (-2146959352, 'Object server is stopping when OLE service
> contacts it
> ', None, None)
> 
> 
> P.S.  I'm already doing the following before I call com..
> 
> import sys
> sys.coinit_flags = 0
> import pythoncom
> pythoncom.CoInitializeEx(pythoncom.COINIT_MULTITHREADED)
> 
> Thanks,
> Stefan
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to