Hi Igor,
Thanks for the fast response. I call my GetDbManager routine which looks like this:
public DbManager GetDbManager()
{
var db = new DbManager(_dataProvider, ConnectionString);
db.MappingSchema = new aq2DefaultMappingSchema();
return db;
}
I do this in a using:
using (DbManager db = GetDbManager())
{}
Normally I am simply passing the db variable to my GetAccessor<> method calls to reuse the same DbManager. I seldom make any direct calls to the DbManager.
Did I miss something important?
Thanks again,
Bryan
Igor,
I used the RedGate Memory Profiler and found that one of my objects had an event reference to an object referencing the DbManager. After adding IDIsposable to the object and “using” constructs my problem no longer exists.
I apologize for even questioning the Toolkit.
Thanks again,
Bryan
From: Bryan Ellis
Sent: Thursday, August 02, 2012 12:17
To: blto...@googlegroups.com
Subject: RE: [bltoolkit] Possible SQL Server connection leak in BLToolkit
Hi Igor,
Thanks for the fast response. I call my GetDbManager routine which looks like this:
public DbManager GetDbManager()
{
var db = new DbManager(_dataProvider, ConnectionString);
db.MappingSchema = new aq2DefaultMappingSchema();
return db;
}
I do this in a using:
using (DbManager db = GetDbManager())
{}
Normally I am simply passing the db variable to my GetAccessor<> method calls to reuse the same DbManager. I seldom make any direct calls to the DbManager.
Did I miss something important?
Thanks again,
Bryan
From: Igor Tkachev [mailto:i...@bltoolkit.net]
Sent: Thursday, August 02, 2012 12:03
To: Bryan Ellis
Cc: blto...@googlegroups.com
Subject: Re: [bltoolkit] Possible SQL Server connection leak in BLToolkit
Hello, Bryan.