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.
public native static void release(Object o);
o | The Java proxy of a native COM object. |
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.