struct Hook { // LINK only works as a member of a class...
DECL_STATIC_LINK(Hook, deinitHook, LinkParamNone *, void);
};
// HACK so that defaultBootstrap_InitialComponentContext (in // unobootstrapprotector) is called before InitVCL (below), but component // context is disposed (redundantly again in unobootstrapprotector) from within // DeInitVCL (cf. Desktop::DeInit, desktop/source/app/app.cxx):
IMPL_STATIC_LINK_NOARG(Hook, deinitHook, LinkParamNone *, void) {
css::uno::Reference<css::uno::XComponentContext> context; try {
context = comphelper::getProcessComponentContext();
} catch (css::uno::RuntimeException &) {}
// the desktop has to be terminate() before it can be dispose()
css::uno::Reference<css::frame::XDesktop> xDesktop; try {
xDesktop = css::frame::Desktop::create(comphelper::getProcessComponentContext());
} catch (css::uno::DeploymentException &) {} if (xDesktop) try {
xDesktop->terminate();
} catch (css::uno::DeploymentException &) {}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.