In SQLiteDataReader.Close(), these two lines of code:
if ((_commandBehavior & CommandBehavior.CloseConnection) != 0 && _command.Connection != null)
_command.Connection.Close();
should read
if ((_commandBehavior & CommandBehavior.CloseConnection) != 0 && _command.Connection != null)
_command.Connection.Dispose();
So the connection gets closed and the finalizer is suppressed. We did some investigation into disposable objects that were not being properly disposed in our application and came across this.
Thanks,
Sam
We're hiring! B-Line Medical is seeking .NET Developers for exciting positions in medical product development in MD/DC. Work with a variety of technologies in a relaxed team environment. See ads on http://careerbuilder.com.