main/desktop/source/pkgchk/unopkg/unopkg_app.cxx
//workaround for some reason the bridge threads which communicate with the uno.exe
//process are not released on time
workaround for some reason the bridge threads which communicate with the uno.exe
process are not released on time
workaround for some reason the bridge threads which communicate with the uno . exe process are not released on time
void disposeBridges(Reference<css::uno::XComponentContext> ctx)
{
    if (!ctx.is())
        return;
    Reference<css::bridge::XBridgeFactory> bridgeFac(
        ctx->getServiceManager()->createInstanceWithContext(
            OUSTR("com.sun.star.bridge.BridgeFactory"), ctx),
        UNO_QUERY);
    if (bridgeFac.is())
    {
        const Sequence< Reference<css::bridge::XBridge> >seqBridges = bridgeFac->getExistingBridges();
        for (sal_Int32 i = 0; i < seqBridges.getLength(); i++)
        {
            Reference<css::lang::XComponent> comp(seqBridges[i], UNO_QUERY);
            if (comp.is())
            {
                try {
                    comp->dispose();
                }
                catch (css::lang::DisposedException& )
                {
                }
            }
        }
    }
}
void disposeBridges ( Reference < css :: uno :: XComponentContext > ctx ) { if ( ! ctx . is ( ) ) return ; Reference < css :: bridge :: XBridgeFactory > bridgeFac ( ctx -> getServiceManager ( ) -> createInstanceWithContext ( OUSTR ( " " ) , ctx ) , UNO_QUERY ) ; if ( bridgeFac . is ( ) ) { const Sequence < Reference < css :: bridge :: XBridge > > seqBridges = bridgeFac -> getExistingBridges ( ) ; for ( sal_Int32 i = 0 ; i < seqBridges . getLength ( ) ; i ++ ) { Reference < css :: lang :: XComponent > comp ( seqBridges [ i ] , UNO_QUERY ) ; if ( comp . is ( ) ) { try { comp -> dispose ( ) ; } catch ( css :: lang :: DisposedException & ) { } } } } }
workaround for some reason the bridge threads which communicate with the uno.exe
process are not released on time
workaround for some reason the bridge threads which communicate with the uno . exe process are not released on time