用ADOX创建access数据库,程序一直占用access文件,怎么才能关闭?
tbl   =   null; 
                                                 cat.ActiveConnection   =   null;                                                   
                                                 cat   =   null; 
                                                 System.GC.Collect(); 
 还是不能关闭,一直占用,怎么解决??
------解决方案--------------------不要用dataread
------解决方案--------------------adox 的连接关闭了么? 这段代码没有看到关闭的地方       
------解决方案--------------------这里得提醒一下, 
 在ADO.NET中使用OleDbConnection或OleDbDataReader 对象,在使用完后一定要调用Close()方法 
 例: 
 OleDbConnection con = new OleDbConnection(path); 
 OleDbCommand cmd    = new OleDbCommand( "select * from table; ",con); 
 OleDbDataReader r   = cmd.ExecuteReader(CommandBehavior.SingleRow); 
 r.Reader(); 
 r.Close(); 
 con.Close(); 
 cmd.Dispose();
------解决方案--------------------Release呢
------解决方案--------------------把你的 全部 代码 贴出来 
 肯定是你没有关闭 conn链接 
 或者是 dr用了没关闭
------解决方案--------------------应该有相应的释放数据库连接代码。