Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index




--- On Fri, 6/21/13, Vieri <rentorbuy@yahoo.com> wrote:

Hi,

When I close my document/application with a java macro such
as:
 
XModel xDocModel = xScriptContext.getDocument();
xDocModel.dispose();

then the doc and application close but I notice that the
soffice.bin and .exe (Windows 7) are still running as
processes. The bad thing is that if I try to open another
.odt file then it won't show up on screen (I will end up
having several soffice.bin/.exe processes running but no
GUI).

I've read somewhere that I should use .close(true) instead
of .dispose() but I can't seem to find the .close method in
Java. Any hints?

Anyway, is there anything wrong with .dispose()? 

I found the way to do it with Java:

XCloseable xcloseable = (XCloseable) UnoRuntime.queryInterface(
    XCloseable.class, xDocModel);
try {
  xcloseable.close(true);
} catch (Exception e) {
  e.printStackTrace();
}

and it closes the doc/app BUT soffice.bin and .exe are still running when the GUI closes....

Weird.

Vieri


-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.