Sqlite 3错误 - initpage()返回错误代码11 [英] Sqlite 3 error - initpage() returns error code 11

查看:308
本文介绍了Sqlite 3错误 - initpage()返回错误代码11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello all



我在嵌入式linux中有一个sqlite 3数据库。最近每当我从CGI应用程序访问数据库时它都会被破坏,如果我应用命令pragma integrity_check它会给我上面的错误。关于原因和解决方案的任何事情?我试图转储并读取数据库,但不久之后它再次被损坏。



提前感谢! :)

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! :)

推荐答案

已解决。



问题是软件中的索引超出范围异常因此无法正确释放Sqlite 3资源。如果您遇到此错误代码,请检查您拥有的任何内存访问[数组,指针,字符串等],并确保正确访问它不在其范围之外。
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.


这篇关于Sqlite 3错误 - initpage()返回错误代码11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆