Yeah that's exactly it, there's a separate application running that is
delivering COM objects to my python script. Each object is its own callback
which requires a Dispatch call to get access to the properties. This can be
several thousand in a very short period of time and while this happens my
other thread will attempt to create a COM object and seems to hang on the
Dispatch call. During very high loads, the 2nd thread that is trying to
create a new object can hang for almost a minute.

On Thu, Aug 15, 2019 at 10:21 PM Tim Roberts <t...@probo.com> wrote:

> On Aug 15, 2019, at 9:28 PM, Joel Gross <jag...@gmail.com> wrote:
> >
> > Yeah I'm calling CoInitialize. I can give CoInitializeEx a shot, but
> there's no clear-cut way to set a priority for Dispatch? I'm not sure how
> these objects are handled internally, is it just a regular queue?
>
> Is this an out-of-process server, so you’re receiving requests from other
> processes?  If so, then I think you’re seeing RPC (Remote Procedure Call),
> which marshals the parameters back and forth, and I believe those are all
> first-come first-served.
> —
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to