Andreas Bröker wrote:
Hello Mathias,

the posted code is only an example in order to reproduce the OpenOffice.org crash with a great many of API calls. In real life code with also a huge amount of API calls. But i think it is not a good idea to write down here 10000 LOC. Therefore i asked not for workaround not the loop - i asked for a workaround in order to prevent the OpenOffice.org crash. Sorry for that misunderstanding.

The code you posted is the victim of a race condition within soffice. There is probably no workaround (as you already found out, you can somewhat reduce the probability of something bad happening, e.g., by calling GC repeatedly, but you cannot reduce the probability to zero).

-Stephan

Best regards

Andreas

-----Original Message-----
From: Mathias Bauer [mailto:[EMAIL PROTECTED]
Sent: Monday, June 20, 2005 6:57 PM
To: [email protected]
Subject: Re: [api-dev] How stable is the Java API ?


Andreas Bröker wrote:

Hello,

have anybody an idea for a workaround.

Sorry, but why do you need a workaround for an artificial problem that
doesn't exist in real life code? I doubt that you ever will have the
loop you posted as a part of a "real" program.

Best regards,
Mathias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to