FesTransaction.Commit - Update event handlers NullReferenceException
--------------------------------------------------------------------
Key: DNET-476
URL: http://tracker.firebirdsql.org/browse/DNET-476
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 2.5.1
Reporter: devvvy
Assignee: Jiri Cincura
Stack:
>
> FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.Client.Native.FesTransaction.Commit()
> Line 249 C#
FirebirdSql.Data.FirebirdClient.dll!FirebirdSql.Data.FirebirdClient.FbTransaction.Commit()
Line 169 + 0xc bytes C#
...
I ran into a (System.NullReferenceException: Object reference not set to an
instance of an object) from FesTransaction.Commit, and I have no clue what's
happenning... as my code from BeginTransaction to Commit is not-threaded...
public void Commit()
{
this.CheckTransactionState();
lock (this.db)
{
// Clear the status vector
this.ClearStatusVector();
int trHandle = this.handle;
db.FbClient.isc_commit_transaction(this.statusVector, ref trHandle);
this.handle = trHandle;
this.db.ParseStatusVector(this.statusVector);
this.db.TransactionCount--;
if (this.Update != null)
{
this.Update(this, new EventArgs()); <-- Blows up here,
this.Update == null!?!? Suspect this is a threading issue? Any idea how this
happenned? (Nothing in my code references FesTransaction.Update and whole
BeginTransaction/Commit is not-threaded)
}
this.state = TransactionState.NoTransaction;
}
}
--
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
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider