Re: [python-win32] Dispatch command hangs

2019-08-16 Thread Joel Gross
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

Re: [python-win32] Dispatch command hangs

2019-08-15 Thread Tim Roberts
On Aug 15, 2019, at 9:28 PM, Joel Gross 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

Re: [python-win32] Dispatch command hangs

2019-08-15 Thread Joel Gross
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? Thanks On Thu, Aug 15, 2019 at 8:00 PM Tim Roberts wrote: > On Aug 14, 2019, at 6:12

Re: [python-win32] Dispatch command hangs

2019-08-15 Thread Tim Roberts
On Aug 14, 2019, at 6:12 PM, Joel Gross wrote: > I have a multi-threaded application that receives a large number of messages > (COM objects) in sudden bursts. During this time, I've noticed that if my > other thread attempts to create a new COM object via the Dispatch call, that > call seems