访问临时文件未删除。

编程入门 行业动态 更新时间:2024-10-14 10:44:51
本文介绍了访问临时文件未删除。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在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.

更多推荐

访问临时文件未删除。

本文发布于:2023-07-06 07:39:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1047414.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:临时文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!