0

When I often go back and forward in my learning-app (everytime loading the question and answer) i will get this error:

01-01 15:27:36.803: E/CursorWindow(3820): Could not allocate CursorWindow '/data/data/*package-name*/databases/quiz.db' of size 2097152 due to error -12.

I can't say exactly when I get this error, only that when im often changing the content

Can anybody help me to understand what this error means, please

Thanks

tom_tom
  • 465
  • 1
  • 7
  • 18
  • Does this answer your question? [Could not allocate CursorWindow](https://stackoverflow.com/questions/17495713/could-not-allocate-cursorwindow) – forpas Jul 06 '22 at 12:59

1 Answers1

1

According to this question and answers you should check if you handle your cursors correctly and if the amount of data you query is too big (check the 2048k limit)

Community
  • 1
  • 1
WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
  • @What do you mean by "check the 2048k limit" ? How? Thanks – Dr.jacky Jul 12 '15 at 17:45
  • 1
    @Mr.Hyde sorry, I do not remember but a quick search suggest that there is a limit to 1MB for cursor queries: http://stackoverflow.com/questions/5406429/cursor-size-limit-in-android-sqlitedatabase – WarrenFaith Jul 13 '15 at 09:25