List Info

Thread: Backgroung conversion crashes when closing last foreground document




Backgroung conversion crashes when closing last foreground document
user name
2006-05-24 07:15:40
Hi Tobias,

> I have following problem. I wrote a little program that
converts
> documents in background, without showing a user
interface. If I have an
> active OO screen and close this, my conversion utility
crashes.
> 
> My questing: how can I stop OO closing my conversion
tool?
> 
> Please give me a hint.

when you close the "visible" Office the soffice
process ends, so I 
suppose your conversion tool will run into a
DisposedException.

You could catch this exception and reconnect when it is
throws.

For the reconnect ... if you use the SimpleBootstrap
mechanism as used 
in the SDK-samples then this will start the office and
connect ... if 
you use a self written socket or pipe connection you'll
have to restart 
the office.

Hope that helps

Regards

Stephan

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )