Dear all,
First of all, I would like to thank you very much for providing this wrapper which helps me in the migration of the DB to SQLite.
Now I have an issue with my application using SQLite via the ADO.NET 2.0. My application is a multi-thread one, so there are multi-access to the DB. After reading many posts, from your website / forums and others, I take care to:
- use another connection objet in each thread. To do so, I have in my main thread a connection which is initialised and then cloned to be passed to the thread. So I always clone the connection
- be sure that only one thread is modifying the database at the same time, but other can read it. To do so, I implement a semaphore object to allow only single access to the function which modify the database.
However, I have sometimes messages "The database file is locked". What is strange is that this message appears when I try to read only the content of a table. To do so, I use a dataAdapter object to only fill the dataset: no update call.
Could you please help me because I try to find a solution since few months, consulting many, many websites, but without success :(
Thank you in advance for your kind help
Best regards,
Bull