On 9 Aug 2015, at 10:37pm, ??????? ??????????? <dm3chip at gmail.com> wrote:

> I've got a problem. I'm using sqlite3 in my C++ project. In the log I've
> got error's *DB is locked error code 5*. As I know error code 5 means, that
> DB is busy.

For testings, please use

<https://www.sqlite.org/c3ref/busy_timeout.html>

int sqlite3_busy_timeout(sqlite3*, int ms);

with a timeout of a couple of minutes. (Really.  Minutes.)  You will need to 
set it on all connections, not just the one which is currently reporting errors.

Simon.

Reply via email to