Releases the object handle, so that the garbage collector will free the object.
DotNetAPI.bdh
DotNetFreeObject( in hObject : number ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hObject | Handle to a .NET Object that will be released |
dcltrans transaction TMain var hObject : number; begin hObject := DotNetLoadObject("bin\\Release\\MyDotNet.dll", "MyDotNet.TestClass"); DotNetCallMethod(hObject,"TestMethod"); DotNetFreeObject(hObject); end TMain;