[Mono-list] Sqlite bug ? Database file is locked

alexzhu imthezc at gmail.com
Fri Nov 30 10:06:13 UTC 2012


Hi

I'm developing a game with Sqlite(mono.data.sqlite) and WCF in Unity3D. But
they work *FINE* together at the first run, and at the second time, console
shows "SQLite Except: The database file is locked", Help!

--------------
*
Codes below*
--------------
LobbyServiceClient _client = new LobbyServiceClient(_binding,_endpoint);

_client.DoSomething();

try {
         if (_client.State!=CommunicationState.Faulted) {
          //_client.Close();
          _client.Abort();
}}catch (System.Exception ex) { _client.Abort(); }

string _sql ="Some Select Function";

SqliteHelper _db = new SqliteHelper("client.db");

       _db.Conn.Open();
       DataTable _dt=  _db.Q(_sql);
       _db.Conn.Close();



--
View this message in context: http://mono.1490590.n4.nabble.com/Sqlite-bug-Database-file-is-locked-tp4657595.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list