[Firebird-net-provider] [FB-Tracker] Created: (DNET-408) Connection pool cleanup timer is executed only once because timer is disposed in worker method
Connection pool cleanup timer is executed only once because timer is disposed in worker method -- Key: DNET-408 URL: http://tracker.firebirdsql.org/browse/DNET-408 Project: .NET Data provider Issue Type: Bug Components: ADO.NET Provider Affects Versions: 2.7 Reporter: Gerdus van Zyl Assignee: Jiri Cincura Priority: Minor Attachments: FbConnectionPool.cs.patch, FbConnectionTests.cs.patch Expected: after connection pool timeout the connection is closed. Reality: it is not. Connection pool cleanup timer is executed only once because timer is disposed in worker method Patch to comment out the dispose: Index: Data/FirebirdClient/FbConnectionPool.cs === --- Data/FirebirdClient/FbConnectionPool.cs (revision 53955) +++ Data/FirebirdClient/FbConnectionPool.cs (working copy) @@ -314,7 +314,7 @@ } } - pool.cleanupTimer.Dispose(); + //pool.cleanupTimer.Dispose(); } } -- 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 -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
[Firebird-net-provider] [FB-Tracker] Created: (DNET-316) Null reference exception on fbcommand dispose
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