Sqlite Opening Error : Unable to open database

2019-03-01 09:16发布

In my app, I use a calendar control to store the information date-wise.

Calendar Control's Link : http://blog.webscale.co.in/?p=244

Problem :

For example, the current selected month is October 2010. Now if I switch back to April 2010 and try to comeback to Ocober 2010 & access data from calendar that I stored in the month of October then I get the Error that says : "Sqlite opening Error : unable to open database file".

It works fine without switching between months.

The basic troubleshooting and checks which i have already done are:

1) I have made changes to database file permission and containing directory's permission but it didn't help me.

2) Database file path is also proper and database is not empty.

What could be going wrong?

what should I do?

Please Help and Give your Suggestions.

Thanks in Advance!

1条回答
Root(大扎)
2楼-- · 2019-03-01 10:10

Got the answer I opened the database but wasnt closing it and multiple instances of database were conflicting and causing the database to be locked.

Hope this would help someone.

Thanks Anyways!!

查看更多
登录 后发表回答