KeepJavaObject

KeepJavaObject[object]

causes the specified object or objects not to be released when the current JavaBlock ends.

KeepJavaObject[object,Manual]

causes the specified object to escape from all enclosing JavaBlock blocks, meaning that the object will only be released if you manually call ReleaseJavaObject.

Details

See Also

ReleaseJavaObject  JavaBlock

Tutorials