0

I am running code from this tutorial sqlite database iOS app tutorial on XCode 5.1.1 using iOS version 7.1.0. Program is giving sql error on inserting record

 DB Error: database disk image is malformed...
 Could not execute the query.

On removing the DB file, and creating a new one gives same error.How I can get rid of this db error ?I have visited following links but error remain the same .. SQLiteException "database disk image is malformed" ....SQLite “database disk image is malformed”

Community
  • 1
  • 1
  • Watch for multiple threads accessing your DB at the same time (only allow one at a time). And make sure you are cleaning up after yourself using `sqlite3_finalize()` and `sqlite3_close_v2()` e.t.c. These are common ways of corrupting a database. – Rob Sanders Dec 13 '14 at 12:04
  • The referenced question does not have an answer. – Hot Licks Dec 13 '14 at 13:49
  • (Never mind -- I see it's the same author in both cases.) – Hot Licks Dec 13 '14 at 13:50

0 Answers0