Hi all
i'm doing some tests with pyUNO
I cannot figure out using the InputStream property of LoadComponentFromURL
i have an OOo file, read by the legal file reading method from python
and need to pass it to an OOo instance
How can i define this inputStream to pass as argument
What is the
Hi Martin,
just two points:
- If the hanging finalizer really is the problem, than one dedicated
thread for releasing/finalizing mapped UNO objects should do the trick,
no thread pool needed. The Java finalizer just needs to pass these
objects to the releaser thread.
- How does you ensure
Joerg Budischewski wrote:
[...]
The java uno bridge need to create also a fresh thread for each release
(or at least for each concurrent release). It can't be a single thread
doing the releases, because this would end in the same problem.
A single additonal thread is enough to avoid the
Hi,it may be useful to have a version that does not load the entire file in memory, with something like (untested):class FileInputStream(unohelper.Base, XInputStream, XSeekable): Minimal Implementation of XInputStream
def __init__(self, filename): self.filename = filename self.size =
Hi David
it may be useful to have a version that does not load the entire file in
memory, with something like (untested):
yes should work
btw, havin the whole file in foo can be usefull though for transport
consideration. It is what i need :)
thanks for your proposal
Laurent
--
Laurent
Stephan Bergmann wrote:
Joerg Budischewski wrote:
[...]
The java uno bridge need to create also a fresh thread for each
release (or at least for each concurrent release). It can't be a
single thread doing the releases, because this would end in the same
problem.
A single additonal thread
Kay Ramme - Sun Germany - Hamburg wrote:
Stephan Bergmann wrote:
Joerg Budischewski wrote:
[...]
The java uno bridge need to create also a fresh thread for each
release (or at least for each concurrent release). It can't be a
single thread doing the releases, because this would end in the
Hi pierre
Hi, the google link is a response to one of my question to the list
dev@udk.openoffice.org
look in the archive for subject
making a copy of the current document
The code you cited is from Joerg Budischewski and it worked perfectly
well with OOo1.1 but I never tested it with OOo2.