sqlite3_step (21: out of memory) rs的一种错误原因。
来源:互联网 发布:pdf电子书 知乎 编辑:程序博客网 时间:2024/06/05 09:36
今天在使用FMDB时报了sqlite3_step (21: out of memory) rs这样一个错误。
if ([_DB open]) { NSString *sql=[NSString stringWithFormat:@"SELECT * FROM %@",tablename]; FMResultSet *resultSet=[_DB executeQuery:sql]; else if ([tablename isEqualToString:@"WXZ"]){ if (_WXZModelContents.count==0) { FMResultSet *resultSet2=[_DB executeQuery:sql]; while ([resultSet next]) {<span style="color:#ff0000;">//错误出现在这里,错误的将resultSet2写作了resultSet</span> } } [resultSet2 close]; } while ([resultSet next]) { } } [resultSet close]; }
所以这个错误就是出现在多个查询时,使用错误导致。因为在第一次循环查询完毕后,列表已经被查完了,再执行[resultSet next]操作就会报这个错误,类似于数组溢出一样。
0 0
- sqlite3_step (21: out of memory) rs的一种错误原因。
- JVM中的out of memory错误原因
- JVM中的out of memory错误原因
- cc1plus.exe: out of memory allocating 3355443200 bytes的一种错误情况
- eclipse out of memory错误的解决方法
- Out of memory on a 23040016-byte allocation.的原因
- android out of memory(OOM)产生原因
- 暂时解决weblogic 的 permGen out of memory错误
- mysql出现out of memory错误的解决方法
- win7下Matlab中out of memory错误的解决办法
- wordpress出现wordpress out of memory的错误怎么办
- 调用系统相册报out of memory 错误的解决办法
- 暂时解决weblogic 的 permGen out of memory错误
- out of memory的解决方案
- 解决domino服务器错误:out of memory
- 关于memcached out of memory这个错误
- 运行Ant报Out of Memory错误
- Matlab内存溢出错误 Out of memory
- jquery元素设置
- 内存四区---静态存储区(全局区)的理解
- Leetcode-linked-list-cycle
- Unison(rpm方式)安装及应用--nginx高可用
- putty 回滚问题
- sqlite3_step (21: out of memory) rs的一种错误原因。
- poj1904(二分图最优匹配)
- 229. Majority Element II
- Leetcode-palindrome-number
- android实现自定义相机以及图片的水印
- 学习之maven(1)
- syms使用错误
- Java RMI 简介及其优劣势总结
- react的初始化阶段