Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
ldb file not removed after closing connection in c#.
my code is

C#
oleDbCon.Close();
                OleDbtrans.Dispose();
                oleDbCon.Dispose();
                oleDbCon = null;
Posted
Updated 2-Dec-12 23:22pm
v2

1 solution

This is because there are another connection(s) connected to the database. When you exit your application, please make sure you have already closed the connection(s).

or else
C#
void Dispose()
{
  this.dbConnection.Dispose();
}

I hope this will be helpful.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900