Closed McPo closed 9 years ago
hi, you used listLazy when you query your database? if you used that, you MUST close the cursor by yourself.some document about greendao Queries is here.
Hi ywenblocker,
While is should still close it myself. GreenDao is also supposedly meant to auto-close them for me, under specific condition.
"The cached lazy list from listLazy() and the lazy iterator from listIterator() closes the cursor automatically, once all elements are accessed or traversed. However, it’s your job to call close() if the list processing stops prematurely."
I know my app reaches this condition as swapping out the sqlcrypt version for the non-sqlcrypt version, no errors appear in the log. So there looks like there's an unattended divergence from base, there also doesn't appear to be any recent bug fixes on main to explain the inconsistency.
When using this application Ive been receiving errors in the logs regarding finalising cursors by closing them. The application still works unhindered and the database is encrypted.