我正在使用SQLite数据库,但经常会出现运行时错误,而我无法找到其来源。在查询之后,我使用
moveToFirst
来指向检索到的第一条记录,有时这会触发一个android.database.CursorWindowAllocationException
异常。除了这个异常之外,还有以下句子:"Cursor window allocation of 2048kb failed.# open Cursors=736 (#cursors opendby this proc=736)"。
在Android文档中,我还没有找到与此异常相关的任何信息。有人知道它的原因和避免它的方法吗?
Open Cursors =1
。有人有什么提示吗? - Sivakumar SOutOfMemoryError
错误? - manfcas