Dear Sir
I face a very strange problem. With the same program, some SQLite data file can be read well, but some are fail. Almost every four or five files will have one file fail to be read. It make me crazy.
I write a test program to show how it happened.
I prepare four files to be read. (a.db / b.db/c.db/d.db) I found it fail when read c.db
Then I create a new file e.db with all the same contains with c.db
124 SQLname = "c.db" <------- I change file name from c.db to e.db then everything goes nice
125 OpenSQLitefile(SQLname)
126 Dim Cursor1 As Cursor If I use file c.db Then error happened.
127 Dim recordID As Int The data in c.db are totally the same as e.db
128 Dim TableText As String
129 TableText = "c1" <------- I change table name from c1 to e1
There will be OK. I try to change the filename from a.db to c.db in program. Then I will fail reading c.db The result points to a fact that c.db is a bad file.
But I can check c.db by using a software package DB Browser. It can work well in that package.
I prepare two ZIP files to show the problem.
One read a/b/c/d and fail.
One read a/b/e/d and success
Please help me to see if there is any mistake I made in my test program.
Andy
I face a very strange problem. With the same program, some SQLite data file can be read well, but some are fail. Almost every four or five files will have one file fail to be read. It make me crazy.
I write a test program to show how it happened.
I prepare four files to be read. (a.db / b.db/c.db/d.db) I found it fail when read c.db
Then I create a new file e.db with all the same contains with c.db
124 SQLname = "c.db" <------- I change file name from c.db to e.db then everything goes nice
125 OpenSQLitefile(SQLname)
126 Dim Cursor1 As Cursor If I use file c.db Then error happened.
127 Dim recordID As Int The data in c.db are totally the same as e.db
128 Dim TableText As String
129 TableText = "c1" <------- I change table name from c1 to e1
There will be OK. I try to change the filename from a.db to c.db in program. Then I will fail reading c.db The result points to a fact that c.db is a bad file.
But I can check c.db by using a software package DB Browser. It can work well in that package.
I prepare two ZIP files to show the problem.
One read a/b/c/d and fail.
One read a/b/e/d and success
Please help me to see if there is any mistake I made in my test program.
Andy