Hi Ray,


Sqlite.Net implements a connection pooling scheme. Even when your connection is 
closed, the unmanaged database handle may still be open.



After you have disposed of your connection object and are ready to do 
file-level operations, do something like this:



SQLiteConnection.ConnectionPool.ClearPool(<file_name>)



This should force the unmanaged connection to close if indeed there are no 
lingering open managed connections.



-- Matt Brown



On Thu, Mar 5, 2015 at 12:34 PM, RNACS - Info <info at rnacs.com<mailto:info at 
rnacs.com>> wrote:

"SQLconn" is a SQLiteConnection to my database file.  Once the connection is
closed & disposed of, what still has the .db file still open?  How do I
close the file so I can delete it?

Reply via email to