I have read somewhere that the OOo API doesn't work properly when you have
more than one process using the API at the same time. Therefore I have been
trying to get a program written in Python to start up its own instance of
OOo. I have written a little function that finds a spare port and then
starts OOo listening on that port. I use the -env:UserInstallation switch to
point it at a temp directory for that instance, then I use UNO to connect to
it and edit documents.

The issue that I'm having is that despite running (what I thought was) two
seperate instances using different UserInstallation directories and
listening on different ports, when one copy of OOo exits, it causes the next
API operation on the other copy to generate a RuntimeException with message
"illegal object given!". How do I concurrently run more than one instance of
OOo, or have more than one connection to the API? Do I need to set up
multiple copies of OOo in some way?

Potentially useful information:
  OS: Fedora 9 x86_64
  Python: 2.5.1
  OpenOffice: 2.4.1 (RPMs from Fedora repository)

I have asked this on the user list but didn't get much of a response and was
told I might have better look on the dev list. Any assistance would be
greatly appreciated.

Thanks,
David Roe

Reply via email to