On 8 Jul 2014, at 8:39pm, Micka <mickamus...@gmail.com> wrote:

> i'm using sqlite in different process. Sometimes I got the error Busy ... =>
> 
> When SQLite tries to access a file that is locked by another process, the
> default behavior is to return SQLITE_BUSY.
> 
> 
> So how can I prevent that ?

Have you set a timeout, so that SQLite can back off for a little time then try 
again ?

Use either

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

or

<http://www.sqlite.org/pragma.html#pragma_busy_timeout>

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

Reply via email to