访问临时文件未删除。 [英] Access temp file not deleted.

查看:80
本文介绍了访问临时文件未删除。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c#中关闭连接后没有删除ldb文件。

我的代码是



ldb file not removed after closing connection in c#.
my code is

oleDbCon.Close();
                OleDbtrans.Dispose();
                oleDbCon.Dispose();
                oleDbCon = null;

推荐答案

这是因为那里是连接到数据库的另一个连接。当您退出申请时,请确保您已经关闭了连接。



或者

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
void Dispose()
{
  this.dbConnection.Dispose();
}



我希望这会有所帮助。


I hope this will be helpful.


这篇关于访问临时文件未删除。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆