David Roe wrote:
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?
The text "illegal object given" only appears to be used in
stoc/source/corereflection/ within the OOo source code. Maybe it is an
error in how PyUNO (or the underlying, if I understand correctly,
corereflection code) handles multiple remote UNO bridges per process.
Maybe it helps asking your question again on [EMAIL PROTECTED],
stating in the subject line that the question is Python-related.
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]