DotConnect for Oracle express edition version 9.14 cause serious memory leak!
- I have this code to open Oracle connection:
- private OracleConnection _OpenDBConn()
- {
- bool successed = false;
- OracleConnection conn = new OracleConnection(ConnectString) { AutoCommit = false };
- try
- {
- conn.Open();
- successed = true;
- return conn;
- }
- finally
- {
- if (!successed && conn != null)
- {
- conn.Dispose();
- }
- }
- }
When I turn off the Database Server then this code cause serious memory leak (5-6GB RAM after few days). This code will be called every 2 seconds.
With the database server up and running, there is no memory leak at all.
I am using VS 2019, Oracle Client 19c with Devart DotConnect for Oracle express edition version 9.14.
Please help!