On 31 Aug 2012, at 6:42am, Daniel Dawson <dan...@nightlife.com.au> wrote:

> I am calling sqlite3_step and checking the return value,
> 
> Usually I get an SQLITE_DONE, or an SQLITE_BUSY which I handle.
> 
> However, sometimes I get an SQLITE_MISUSE return code. If I call 
> sqlite3_errmsg straight after receiving the code then I get "Database is 
> Locked" - The documentation states that SQLITE_MISUSE only occurs if I call 
> the library routines incorrectly.

Do you check the return values for all your other sqlite3_ functions ?  It can 
happen if, for example, your _prepare() call returned an error but you 
proceeded to _step() anyway.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to