Microsoft SDK for Java

release

This method of the ComLib Class forces Java to release all outstanding reference counts on a native COM object. After releasing the reference counts, any attempts to use the COM object through this Java proxy results in an UnsatisfiedLinkError. If the specified object does not wrap a native COM object, this method succeeds but does nothing.

Syntax

public native static void release(Object o);

Parameters

o The Java proxy of a native COM object.

Remarks

If the Java proxy wraps a non–thread-safe native COM object that was created on another thread, the actual release of the object can occur after the release method has returned.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.