Yes. Each time either thread connects a new sqliteconnection instance is 
created. I use a mutex protected static method through which both threads do 
their database connections in order to ensure database is accessed by only one 
thread at a time.
________________________________
From: Joe Mistachkin
Sent: 26/09/2012 20:54
To: 'General Discussion of SQLite Database'
Subject: Re: [sqlite] Seemingly random Access Violation errors


Matthew Dumbleton wrote:
>
>      at UnsafeNativeMethods.sqlite3_close_interop(IntPtr db)
>      at SQLiteBase.CloseConnection(SQLiteConnectionHandle db)
>      at SQLiteConnectionHandle.ReleaseHandle()
>      at CriticalHandle.Cleanup()
>      at CriticalHandle.Dispose(Boolean disposing)
>      at CriticalHandle.Dispose()
>      at SQLite3.Close()
>      at SQLiteConnection.Close()
>
>

Are you using a new SQLiteConnection object instance on each thread?

--
Joe Mistachkin

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to