Lots of exceptions by transaction destructor
--------------------------------------------
Key: DNET-657
URL: http://tracker.firebirdsql.org/browse/DNET-657
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 4.9.0.0
Reporter: Alexander Muylaert-Gelein
Assignee: Jiri Cincura
Priority: Critical
FbTransaction doesn't dispose the internal GDSTransaction anymore.
If you look at FbTransaction.Commit, you'll notice it calls UpdateTransaction.
This method just sets the _transaction to null. The dispose of this internal
transaction isn't being called.
The disadvantage of this is that I have a lot of unwanted errors being spawned
inside the gc thread. If you replace the code in fbtransaction by the
following, it seems to work fine
private void UpdateTransaction()
{
if (_connection != null && _connection.InnerConnection
!= null)
{
_connection.InnerConnection.TransactionUpdated();
}
_isUpdated = true;
_connection = null;
if (_transaction != null)
{
_transaction.Dispose();
_transaction = null;
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider