OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

how to kill 00 server

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
prakash
General User
General User


Joined: 27 May 2004
Posts: 32

PostPosted: Tue Jul 06, 2004 2:25 am    Post subject: how to kill 00 server Reply with quote

how do u terminate OO server from java API? i know there is one desktop.
terminate() method? Does it always work?
Second i tried with java Runtime class to start OO and
Process. destroy( ) to terminate 00 , but it doesnt work.
is there any other way do the same?

thanks!!
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Tue Jul 06, 2004 6:41 am    Post subject: Reply with quote

Yes you should terminate() the com.sun.star.frame.Desktop service by querying the appropriate interface (XDesktop here).
As far as I know it doesn't always work to kill the soffice process with this command.
If you have the Jacob package for Java you can try it via COM, in case you're running on Windows.
I found out that it did always work (the terminate() method) when I connected to OOo via COM (COM-UNO Bridge) and OLE Automation.

Hope that helps.
Christian
_________________
- Knowledge is Power -
Back to top
View user's profile Send private message Send e-mail
pasha_golub
General User
General User


Joined: 29 Jun 2004
Posts: 24
Location: Ukraine

PostPosted: Wed Jul 07, 2004 12:32 am    Post subject: Reply with quote

Cybb20 wrote:
Yes you should terminate() the com.sun.star.frame.Desktop service by querying the appropriate interface (XDesktop here).
As far as I know it doesn't always work to kill the soffice process with this command.
If you have the Jacob package for Java you can try it via COM, in case you're running on Windows.
I found out that it did always work (the terminate() method) when I connected to OOo via COM (COM-UNO Bridge) and OLE Automation.



This is my code in Delphi:
Code:

   StarOffice := CreateOleObject('com.sun.star.ServiceManager');
   StarDesktop := StarOffice.createInstance('com.sun.star.frame.Desktop');
.... //do work
   StarDesktop.Terminate; //in this line I have Access Violation and abnormal termination of soffice.exe proccess with OS error message:"The application performed an illegal operation and must be shut down" :(

_________________
Nullus est in vitae sensus, ipsa vera est sensus!
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Wed Jul 07, 2004 6:06 am    Post subject: Reply with quote

the question is what you did with OOo when you tried to terminate it.
If you didn't do anything, then I don't know why you get this exception.
_________________
- Knowledge is Power -
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group