I have a memory problem that I can't figure out.
12-17 00:03:10.603: E/AndroidRuntime(19910): android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=723 (# cursors opened by this proc=723)
This happens only when I refresh the page 15-20 times(each time make something like 30 query).
Cursor c;
for(w = 0; w < 30; w++)
{
...
c = dataBase.fetchA();
int valueColIncome = c.getColumnIndex(myDatabase.IEMetaData.IE_VALUE);
if(c.moveToFirst())
{
do
{
...
}while(c.moveToNext());
}
c = dataBase.fetchB();
if(c.moveToFirst())
{
do
{
...
}while(c.moveToNext());
}
...
}
c.close();
I also try to create a cursor every loop in the for and then close it, but nothing has changed. When I refresh this activity more than 15 times the exception is throw.