[EMAIL PROTECTED] wrote:
Thank you guys,
I guess i found my problem.
Multiple processes can have the same database open at the same time.
Multiple processes can be doing a SELECT at the same time. But only
one process can be making changes to the database at any moment in
time, however.
http://www.sqlite.org/faq.html#q7
a thread want same time select and update. How can i handle this
value? Do you know?
sqlite_busy_timeout()
When SQLite tries to access a file that is locked by another process,
the default behavior is to return SQLITE_BUSY. You can adjust this
behavior from C code using the sqlite3_busy_handler() or
sqlite3_busy_timeout() API functions.
Your code was buggy. Try the change i proposed in previous message and
see if works. In the except block do:
main.StatusBar1.SimpleText:='error='+ tablo.SqliteReturnString;
Luiz
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives