To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=108225


User fs changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|UNCONFIRMED               |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from f...@openoffice.org Thu Feb 18 11:31:34 +0000 
2010 -------
This is not a bug. Using the close method on a document is not expected to shut
down the application, no matter whether this document was the last opened one or
not. This is the same for database documents and all other document types.

The fact that OOo is shut down when you close the last document by UI (!) is a
mere UI feature, which is not (only) implemented by using the close method of
the document.

So, it's a matter of the wrong API here. If you want to programmatically shut
down OOo, then you need to use XDesktop::terminate:
http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XDesktop.html.

If you want to simulate the UI behavior of automatic closing, then you need to
use the "UI" API, aka dispatch API. That is, you need to dispatch the
".uno:CloseDoc" command into the window where the document lives in. This will
behave /exactly/ as if the user chose File/Close, including automatic shutdown
of OOo.

Resolving issue as invalid.


As for your last comment:
> Please note that this behavior (sXXXX process still in process list) also
> exists when sBase is closed via File->exit !!

This pretty much sounds like a different issue, which I cannot reproduce. Simply
opening a database document, and doing File/Exit, exits just fine here. I think
you either have the quickstarter running, which keeps OOo alive, or you did
something with the document which triggered the problem - in which case you
would need to provide more facts (but in a separate issue, please).

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to