Einzelnen Beitrag anzeigen

TUX_der_Pinguin

Registriert seit: 1. Jun 2005
Ort: Anholt (NRW)
608 Beiträge
 
Delphi 11 Alexandria
 
#3

AW: Zugriff via Zeos auf SQLite DB von mehren Threads

  Alt 29. Jun 2012, 14:20
Ich habe da gerade was in den FAQ von SQLite gelesen

http://www.sqlite.org/faq.html#q5
Zitat:
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.
...
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.

Das Problem ist nur wie kann ich SQLITE_BUSY abfragen bevor im Main-Thread eine neue Abfrage gestartet wird?!
  Mit Zitat antworten Zitat