Andreas Bröker wrote:
Hello,
if we call the Garbage Collection after every API call OpenOffice.org stays
longer alive. Is it possible that the API produces too much references ?
It might be purely coincidental that OOo crashes later if you GC more
often. For every UNO object that is mapped from OOo to your Java app, a
release call is sent back to OOo (and the object destructed in OOo) at
the time the JVM finds out it no longer needs the mapped object. If you
GC after every API call, the pattern of when those release calls are
sent changes. Unless it is known why OOo crashes, it is hard to tell in
how far this change in pattern influences the scenario.
Do you call OOo from multiple threads? It is a known issue that OOo
does not survive such scenarios for very long.
-Stephan
Best regards
Andreas
-----Original Message-----
From: Andreas Bröker [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 3:34 PM
To: '[email protected]'
Subject: RE: [api-dev] How stable is the Java API ?
Hello Martin,
yes - with OpenOffice.org 1.1.4 we have the same problems.
Best Regards
Andreas
-----Original Message-----
From: Martin Thoma [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 3:28 PM
To: [email protected]
Subject: RE: [api-dev] How stable is the Java API ?
Did you experience this in a Version 1.1.x as well?
I got similar problems with the C++ API using 1.1.3/1.1.4:
After executing a
lot of API calls OO crashes (tries to send an error-report).
The code-line
where the crashe is happening is always different. I could
improve the
behaviour a little bit by avoiding some code, but it's not
gone completely.
For example: Since I don't use setString on a XTextRange I
got from a
XSearchable::findFirst, the crashes seem to appear much less - but I
couldn't swear that this is the cause, because the code works
100+ times and
then it crashes. That's why I'm still testing.
Regards
Martin
-----Original Message-----
From: Andreas Bröker [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 3:04 PM
To: '[email protected]'
Subject: [api-dev] How stable is the Java API ?
Hello,
we uses the Java API in order to modify text documents. We
execute a lot
of calls with the API. After 1000 (sometimes more -
sometimes less) calls
OpenOffice.org (1.9.104) will crash. How stable is the Java
API ? Is it
not a good idea in order to execute such a high number of calls.
Thanks for any comments in advance.
Best Regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]