Releases a Jolt object created with JoltSessionAttributesNew, JoltSessionNew, JoltRemoteServiceNew, JoltTransactionNew or JoltUserEventNew and enables the Java Virtual machine to collect the related garbage object.
Jolt.bdh
JoltFreeObject( inout hJolt : number ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
hJolt | Handle to the Jolt object that is to be released |
var hSession, hSessionAttr, hInquiry: number; dcltrans transaction TInit begin JavaSetOption(JAVA_VERSION, JAVA_V11); JavaSetOption(JAVA_HOME, "c:/jdk1.1.7"); JavaSetOption(JAVA_CLASSPATH, "c:/jdk1.1.7"); JoltInit(); hSessionAttr := JoltSessionAttributesNew(); JoltSetString(hSessionAttr, APPADDRESS, "//lab:8000"); hSession := JoltSessionNew(hSessionAttr, "", "ATM", "", ""); hInquiry := JoltRemoteServiceNew("INQUIRY", hSession); end TInit; transaction TShutdown begin JoltEndSession(hSession); JoltFreeObject(hInquiry); JoltFreeObject(hSession); JoltFreeObject(hSessionAttr); end TShutdown;