Thema: Delphi SQLite3 locked

Einzelnen Beitrag anzeigen

Der schöne Günther

Registriert seit: 6. Mär 2013
6.110 Beiträge
 
Delphi 10 Seattle Enterprise
 
#7

AW: SQLite3 locked

  Alt 31. Jul 2014, 13:27
Die Datei selbst liegt auf einem Netzlaufwerk mit Schreibrechten, hat ja auch mit der sqlite2 funktioniert.
Uh.
http://www.sqlite.org/faq.html#q5:
Zitat:
But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting SQLite database files on NFS if multiple processes might try to access the file at the same time.
Und später:
Zitat:
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.


Auch: Ich verstehe das "Zugriff über: dll" nicht. Gehst du nun direkt über die dll oder (der Quellcode sieht eher danach aus) eine Zwischenschicht wie dbExpress oder FireDAC?
  Mit Zitat antworten Zitat