Null-access exception

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Demigor

Null-access exception

Post by Demigor » Fri 20 Jan 2006 19:18

I get strange exception using OraDirect.NET 3.2.

using (OracleConnection conn = new OracleConnection(connection))
{
using (OracleTransaction trans = conn.BeginTransaction())
{
// making some DB-changes

trans.Commit(); <<<< after commit here
}
}

Looks like Dispose method is buggy for both OracleConnection & OracleTransaction classes.

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Wed 25 Jan 2006 09:49

We reproduced your problem and fixed it. This fix will be included in the next OraDirect .NET build.
As a workaround you can avoid writing "using" clause or Dispose() for OracleTransaction. OracleTransaction.Commit() method calls OracleTransaction.Dispose() inside.

Post Reply