本文介绍了访问临时文件未删除。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在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.
更多推荐
访问临时文件未删除。
发布评论