Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all

I have an sqlite 3 database inside an embedded linux. Recently whenever I access the database from a CGI application it gets corrupted, if I apply the command "pragma integrity_check" it gives me the error above. Anything regarding the cause and the solution ? I tried to dump and read the database but few moments later it gets corrupted again.

thanks in advance! :)
Posted

1 solution

Solved.

The problem was of an index out of range exception in the software, thus not releasing Sqlite 3 resources correctly. If you ever face this error code check any memory access you have [array, pointers, strings, etc.] and make sure it is accessed correctly not out of its range.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900