04-02-2012, 04:48 PM
Hello All,
In my Error log, I write to a Sqlite Database file. Occasionally I get this in the QM output, presumably from the function trying to write an error to the Db3 in the LogErrors function: Error (RT) in LogErrors: failed. Sqlite error 5. database is locked. ?
This may be more of a sqlite question than QM, so any Sqliter's out there. I close out my instance of the Db like this:
whenever writing or reading from it in other functions. I thought Sqlite was supposed to be able to handle all these different queries simultaneously.
Any thoughts,
S
In my Error log, I write to a Sqlite Database file. Occasionally I get this in the QM output, presumably from the function trying to write an error to the Db3 in the LogErrors function: Error (RT) in LogErrors: failed. Sqlite error 5. database is locked. ?
This may be more of a sqlite question than QM, so any Sqliter's out there. I close out my instance of the Db like this:
Sqlite ErrorLogDb.Open(ErrorLogDbPath)
ErrorLogDb.Exec(ErrorLogExecFormat)
ErrorLogDb.Close
whenever writing or reading from it in other functions. I thought Sqlite was supposed to be able to handle all these different queries simultaneously.
Any thoughts,
S