[Zope] Make a Zope object single threaded

Tim Lakey tim@carbonwave.com
Wed, 7 Mar 2001 16:01:50 -0800


Phil,

Yes, we are calling CoInitializeEx.  We also got Zope up and running under
Python 2.0, and that seemed to help some too.

Tim

> -----Original Message-----
> From: Phil Harris [mailto:phil.harris@zope.co.uk]
> Sent: Wednesday, March 07, 2001 1:30 PM
> To: Tim Lakey; Chris Withers
> Cc: zope@zope.org
> Subject: Re: [Zope] Make a Zope object single threaded
>
>
> Tim,
>
> Have you called the pythoncom.CoInitialize() method before using your COM
> object?
>
> This is required to use COM objects relaibly from Zope.
>
> hth
>
> Phil
> phil.harris@zweb.co.uk
>
> ----- Original Message -----
> From: "Tim Lakey" <tim@carbonwave.com>
> To: "Chris Withers" <chrisw@nipltd.com>
> Cc: <zope@zope.org>
> Sent: Wednesday, March 07, 2001 6:50 PM
> Subject: RE: [Zope] Make a Zope object single threaded
>
>
> > I am using Com Object to pull in an ActiveX control for Windows Media
> > Encoder.  I am experiencing some strange behaviours and crashes, which I
> > believe has to do with Zope's threading model conflicting in subtle ways
> > with Com's.  So, I am thinking, that if I turn off the threading on this
> one
> > object in Zope, it might solve my problem.  I don't really want
> more than
> > one access to the Com object happening at a time anyway, so turning the
> > threading off shouldn't cause a loss of desireable functionality in that
> > sense.  Unless it causes problems within Zope.
> >
> > I remember there being a package that can be pulled into the
> product to do
> > this, but I can't find it now.
> >
> > Do you have any advice?
> >
> > Thanks,
> > Tim
> >
> > > -----Original Message-----
> > > From: Chris Withers [mailto:chrisw@nipltd.com]
> > > Sent: Wednesday, March 07, 2001 2:05 AM
> > > To: Tim Lakey
> > > Cc: zope@zope.org
> > > Subject: Re: [Zope] Make a Zope object single threaded
> > >
> > >
> > > Tim Lakey wrote:
> > > >
> > > > Does anyone know how to force a Zope product to be single
> > > threaded within
> > > > Zope?
> > >
> > > Out of curiosity, why do you want to? :-)
> > >
> > > Chris
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )