I noticed one of our internal apps was using DAAB, and that it appears to have some sort of connection leak. I thought I remember reading somewhere that when you used the following code:
Database db = DatabaseFactory.CreateDatabase("ConnectionString");
IDataReader rdr = db.ExecuteReader("sproc")
That the connection was closed for you, so I investigated and it doesn't look to be the case. I'm not too familiar with DAAB, does anyone know for sure what happens and when? Also, the same app has a bunch of classes like:
public class Example
{
private Database db;
public Example ()
{
db = DatabaseFactory.CreateDabase("ConnectionString");
}
public void Update(object o)
{
try
{
db.ExecuteNonQuery("sproc", o.parameter);
}
catch...
}
}
}
}
This at first seems kind of cringeworthy, but like I said I'm not familiar with DAAB. Could these classes be causing the leak if the connections aren't closing themselves within DAAB?