Hello Cristian,
 
use System.gc().
 
Regards
 
Andreas
-----Original Message-----
From: Cristian Fonti [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 4:01 PM
To: [email protected]
Subject: Re: [api-dev] How stable is the Java API ?

Sorry for the idiot question, but how can i call the garbage collection via Java???
Best Regars
Cristian

Andreas Bröker ha scritto:
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 ?

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]
        
      
---------------------------------------------------------------------
    
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

    

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

  


Reply via email to