Error opening Sqlite: unable to open database

In my application, I use a calendar control to store information by date.

Calendar Management Link: http://blog.webscale.co.in/?p=244

Problem:

For example, the current selected month is October 2010. Now, if I go back to April 2010 and try to return to Ocober 2010 and access the data from the calendar that I saved in October, I get an error: "Opening Sqlite Error: cannot open the database file."

It works great without switching between months.

The main troubleshooting and verification methods that I have already completed:

1) I made changes to the resolution of the database file and contained permission to directories, but this did not help me.

2) The path to the database file is also correct, and the database is not empty.

What could be wrong?

what should I do?

Please help and give your suggestions.

Thank Advance

+1
source share
1 answer

I got the answer, I opened the database, but did not close it, and several database instances were conflicting and forced the database to lock.

Hope this helps someone.

Thank you anyway!!

+2
source

Source: https://habr.com/ru/post/1779949/


All Articles