JuggerNET Runtime Library

JavaProxyHelper Class

A class that helps dealing with automatically converted .NET objects. We don't want to leak JNI references when passing .NET strings as arguments. In beta2, we correctly converted the System.String instances to Java strings, but nobody was responsible for the JNI handles and we created a nasty reference leak. This class helps by tracking such string instances and cleaning up the references when it is disposed of.

For a list of all members of this type, see JavaProxyHelper Members.

System.Object
   Codemesh.JuggerNET.JavaProxyHelper

public class JavaProxyHelper : IDisposable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: Codemesh.JuggerNET

Assembly: netrt (in netrt.dll)

See Also

JavaProxyHelper Members | Codemesh.JuggerNET Namespace