Does ES use the "using" statement (i.e. using( VistaDBConnection dbConn = new VistaDBConnection(connectionString) )) by default?
According to the VistaDB 3.3.1.50 build documentation, if connection pooling is used, it is recommended to use the using statment to automatically tear down the object. If not, VistaDBConnection.ClearAllPools() should be called to clear out the connection pools.
[FROM HELP FILE]
"In general connections should be treated either as a global that you lock and manage yourself, or opened with using statements and torn down as quickly as possible. Connection pool settings may be set in the connection string, or through the properties of the VistaDBConnectionStringBuilder. See this topic for more information."
"It is very important to clear the connection pools before application shutdown. Notice in the NUnit tests we call these methods to force releasing of all connection pools in several locations."
VistaDBConnection.ClearAllPools();