Salesforce

.NET Open Client does not always disconnect the AppServer

« Go Back

Information

 
Title.NET Open Client does not always disconnect the AppServer
URL NameP129149
Article Number000162503
EnvironmentProduct: OpenEdge
Version: All supported versions
OS: Windows
Other: .NET Open Client
Question/Problem Description
.NET Open Client does not always disconnect the AppServer.

The AppServer is disconnected by using the Connection's ReleaseConnection() method.
Steps to Reproduce
Clarifying Information
Using state-free AppServer.
Error Message
Defect Number
Enhancement Number
Cause
The AppObject object is never disposed in the code before releasing the Connection.

The Dispose() method allows to properly disconnect from the AppServer.
Resolution
In order to properly disconnect the application from the AppServer, use the Dispose() method of the AppObject.
For example:
MyAppObject.Dispose();            // Disconnect the application from the AppServer
MyConn.ReleaseConnection();       // Release the connection held by the MyConn Connection object.
Workaround
Notes
Keyword Phrase
Last Modified Date11/20/2020 7:39 AM

Powered by