Dispatch in multiple process?

Bob Fang <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <CANVf7NWyVBbc3ArpxWVY6nLN1dVqvFUEJKYepL3qrPczq8X8zQ@mail.gmail.com>
Hi,

I am using an application and I am using win32com.client.Dispatch to
connect to this application. After some experiments, I think that I often
see the following error when I try to call win32com.client.Dispatch at the
same time from two different processes at the same time. I need to be able
to run this COM application in parallel as I need to speed up the
calculation I am running. I am just wondering if I am calling the same COM
object in two different processes, should we hold a filelock so only one of
them will call the dispatch method at the same time?

The error I am getting is:

pywintypes.com_error: (-2146959355, 'Server execution failed', None, None)


Thanks!
Bob

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.