Null reference exception on fbcommand dispose
-
Key: DNET-316
URL: http://tracker.firebirdsql.org/browse/DNET-316
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 2.5.2
Environment: Windows 7, .net 3.5 sp1, visual studio 2008
Reporter: Gerdus van Zyl
Assignee: Jiri Cincura
I have been getting the following exception if I close an connection (or forget
to close connection manually) before explicitly calling .Dispose() on all
FbCommands created (I now put fbcommand object in a list and dispose of
manually before connection close). Which is strange since I can't see where I
keep die commands alive beyond the life of the connection. The part of my
program which gives the problem is a database schema upgrade that runs in a
background thread.
Object reference not set to an instance of an object.
stack trace:
at
FirebirdSql.Data.FirebirdClient.FbConnectionInternal.RemovePreparedCommand(FbCommand
command)
at FirebirdSql.Data.FirebirdClient.FbCommand.Release()
at FirebirdSql.Data.FirebirdClient.FbCommand.Dispose(Boolean disposing)
at System.ComponentModel.Component.Finalize()
target site:
{Void RemovePreparedCommand(FirebirdSql.Data.FirebirdClient.FbCommand)}
--
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
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider