mercredi 6 janvier 2016

Database is locked at SQLitePCL

We are using SQLitePCL in our windows phone 8.1 RT app.

We have opened connection once in app lifecycle but we are getting following exception sometimes.

SQLitePCL.SQLiteException: Unable to prepare the sql statement: SELECT * FROM XYZTable Details: database is locked at SQLitePCL.SQLiteConnection.Prepare(String sql)

We are initialising db connection:

public static SQLiteConnection SqlLiteConnection = new SQLiteConnection("test.db");

Does anyone have clue what's wrong here?

Aucun commentaire:

Enregistrer un commentaire