I was calling it after sqlite3_open,I will try calling before sqlite3_open and update the thread.
-----Original Message----- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Roger Binns Sent: Tuesday, July 15, 2014 10:05 AM To: General Discussion of SQLite Database Subject: Re: [sqlite] Sometimes when my process restarts, it returns error "database is locked" -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/07/14 22:39, Mayank Kumar (mayankum) wrote: > The file system is ext3. I am calling this api > > sqlite3_config(SQLITE_CONFIG_LOG, errorLogCallback, NULL); [...] > Is my understanding correct since my callback is not getting called ? Did you check the result of the sqlite3_config call? It can only be called before SQLite is initialised. You can test that the callback is working by trying to open a database named /dev/null and executing any SQL. This is an example of the diagnostics you will get: http://rogerbinns.github.io/apsw/tips.html#diagnostics Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlPFX04ACgkQmOOfHg372QT16gCgoHzHNaGCVAYwxBfu79iXuRt6 B7gAoJY5RX9MCgimDCSeloiXnNrZncgZ =uqmR -----END PGP SIGNATURE----- _______________________________________________ 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