Hi Raymond,

On Mon, May 06, 2013 at 08:14:17PM +0000, Steele, Raymond wrote:
> Ariel, 
> 
>  I am having a case were the process continues to run. I appears the
>  the EnumerationAccess does have elements, causing the desktop not to
>  terminate. Is there a way to terminate a specific desktop that was
>  not last open, and not close other desktops?

Do you know what component is still alive? If I recall clearly, you
didn't want to close all other documents in the first time, but simply
terminate the office when all documents have been closed.

This enumeration contains all components that where opened using the
application framework, if this component is keeping the desktop alive,
you have to close/dispose it. But then, you face your original problem:
you don't want to close documents that are still open. So, first,
investigate which is the component that is keeping the office alive:

> if (!xEnumerationAccess.hasElements()) {
>     xDesktop.terminate();

Replace this with an if ... else ...
If the enumeration has elements, iterate over them, see if they support
css.lang.XServiceInfo, and print information about the component; this
may get you some hint about that last component.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: pgpaQQ2zDyWk6.pgp
Description: PGP signature

Reply via email to