KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Visual Studio 2012 SQLite 1.0.82.0 (from nuget) I am trying to use the "Run All" command in the "Test Explorer" The following error happens after you run the test once ... after that it will not build anymore, until you restart visual studio Here is the build error The Process cannot access the file 'SQLite.Interop.dll' because it is being used by another process here is the code using System.Data.SQLite; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Test.Sqlite { [TestClass] public class Test_Sqlite_Locking { [TestMethod] public void can_create_table() { using(var fact = new SQLiteFactory()) using (var conn = fact.CreateConnection()) { conn.ConnectionString = "Data Source=:memory:;Version=3;New=True;"; conn.Open(); //conn.Close(); } //SQLiteConnection.ClearAllPools(); //GC.Collect(); } } } I have tried, closing connection, calling ClearAllPools, GC.Collect, and creating the SQLiteConnection directly (instead of the Factory) ... still same issue This DOES work if you DEBUG ALL TESTS ... but it is when you just Run the tests that this seems to lock it up
Tags (comma-separated)
Save Edits
Cancel