JuggerNET Runtime Library v3.6.54.0
3.6.54.0
|
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. More...
Public Member Functions | |
JavaProxyHelper (int size) | |
JavaProxyHelper (JavaProxy owner, int size) | |
void | Dispose () |
long | Add (string str) |
long | AddBoolean (Boolean b) |
long | AddChar (Char ch) |
long | AddInt16 (Int16 i) |
long | AddInt32 (Int32 i) |
long | AddInt64 (Int64 i) |
long | AddSingle (Single s) |
long | AddDouble (Double d) |
void | KeepAlive (object o) |
void | Forget (int indexToForget) |
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.