Examples of dispose()


Examples of com.sun.jmx.remote.internal.NotificationBuffer.dispose()

            return false;
        }
        System.out.println("New notifications fit in now-larger buffer, OK");

        // Drop the second buffer and check that the capacity shrinks
        nb2.dispose();
        NotificationResult nr3 =
            nb.fetchNotifications(allListenerFilter, 0,
                                  1000L, Integer.MAX_VALUE);
        if (nr3.getEarliestSequenceNumber() != nr.getNextSequenceNumber()) {
            System.out.println("After shrink, notifs not dropped as expected");
View Full Code Here

Examples of com.sun.media.imageioimpl.plugins.gif.GIFImageWriter.dispose()

            } catch (Exception e) {
                // swallow
            }

            try {
                gifWriter.dispose();
            } catch (Exception e) {
                // swallow
            }

            // let go of the image chain as soon as possible to free memory
View Full Code Here

Examples of com.sun.media.rtp.RTPSessionMgr.dispose()

     
            if( addr.getDataHostAddress().equals( address)
    && port.equals( dataPort)) {
   
                mgr.removeTarget( addr, "Closing session from AVReceiver");
                mgr.dispose();

    mgrs.removeElement( mgr);
   
    break;
      }
View Full Code Here

Examples of com.sun.opengl.util.j2d.TextRenderer.dispose()

  }
  private void freeFontCache(Font font) {
    if(LOGGER.isLoggable(Level.FINER)) LOGGER.finer("Free cached font: " + font);
    TextRenderer renderer = textRenderers.get(font);
    if(renderer != null) {
      renderer.dispose();
      textRenderers.remove(font);
      cachedFonts.remove(font);
    }
  }
  private void freeFontCache() {
View Full Code Here

Examples of com.sun.opengl.util.texture.Texture.dispose()

            for (String str : _texsActive[cleanLayer].keySet()) {
                _texProc.freeTexture(str);
                Texture t = _texsActive[cleanLayer].get(str);
                if (isLoaded(t)) {
                    t.bind();
                    t.dispose();
                }
            }
            _texsActive[cleanLayer].clear();
            System.gc();
View Full Code Here

Examples of com.sun.star.awt.XWindow.dispose()

                assure("failed: IllegalArgumentException caught in convertSizeToPixel " + e.getMessage(), Boolean.FALSE);
            }

            // close the window.
            // IMHO a little bit stupid, but the XWindow doesn't support a XCloseable interface
            xWindow.dispose();
    }
}
View Full Code Here

Examples of com.sun.star.embed.XOLESimpleStorage.dispose()

            }
           
            //commit the storage and close it
            xOLESimpleStorage.commit ();
            m_aTestHelper.Message ( "Storage commited." );
            xOLESimpleStorage.dispose ();
            for ( int i = 0; i < pStreamCnt; ++i )
            {
                xTempStream[i].setRemoveFile ( true );
                xTempStream[i].getInputStream ().closeInput ();
                xTempStream[i].getOutputStream ().closeOutput ();
View Full Code Here

Examples of com.sun.star.frame.XModel.dispose()

            log.println("Couldn't invoke script:" + re);
            output = "com.sun.star.uno.RuntimeException";
        }

        if (ctx != null)
            ctx.dispose();

        log.println("expected: " + expected + ", output: " + output);
        if (output.equals(expected))
            return true;
        else
View Full Code Here

Examples of com.sun.star.lang.XComponent.dispose()

            XDependentTextField xDepField = (XDependentTextField) UnoRuntime.queryInterface(XDependentTextField.class, xField);
            XTextContent xFieldContent = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, xField);
            if (xTextFieldsSupplier.getTextFieldMasters().hasByName("com.sun.star.text.FieldMaster.User." + FieldName)) {
                Object oMaster = xTextFieldsSupplier.getTextFieldMasters().getByName("com.sun.star.text.FieldMaster.User." + FieldName);
                XComponent xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, oMaster);
                xComponent.dispose();
            }
            XPropertySet xPSet = createUserField(FieldName, FieldTitle);
            xDepField.attachTextFieldMaster(xPSet);
            xTextCursor.getText().insertTextContent(xTextCursor, xFieldContent, false);
        } catch (com.sun.star.uno.Exception exception) {
View Full Code Here

Examples of com.trolltech.qt.core.QFile.dispose()

   
    writer.dispose();

   
    xmlFile.close();
    xmlFile.dispose();

  }
 
 
  private void writeSavedSearches() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.