z...@tofocus.cn wrote: > recently, I have a prolbem, that my android(4.3) application use sqlite db > to store the data. > my had two thread visit the db, and offten happen delete db table, so my > data lose. > [...] > 03-18 14:25:04.194 2345-2384/? E/SQLiteLog: (26) statement aborts at 0: > [PRAGMA user_version;] file is encrypted or is not a database > 03-18 14:25:04.194 2345-2384/? E/DefaultDatabaseErrorHandler: Corruption > reported by sqlite on database: > /data/data/com.mxcg.abcmarket/databases/citycardconfig.db > 03-18 14:25:04.194 2345-2384/? E/DefaultDatabaseErrorHandler: deleting the > database file: /data/data/com.mxcg.abcmarket/databases/citycardconfig.db
The file got corrupted. This is either a hardware problem, or wrong (insufficient) locking in your threaded code. If it happens only with that file, then it is much more likely that your code is at fault. Regards, Clemens _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users