d b wrote: > I am getting sqlite error 21. SQLITE_MISUSE
> There is only one sqlite prepared statement for insertion. It's not multi > threaded app. The below function repeatedly calling for every record > insertion. This app was running from last 4 days. On third, it was started > throwing error 21. What could be the reason? > > sqlite3_stmt s = find(insertquery); > while(enumerate listofinputparams) > bind each argument for insert statement s > sqlite3_step(s); > sqlite3_reset(s); This looks OK. What function returns the error? Regards, Clemens _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users