Cursor window allocation of 2048 kb failed. # Open Cursors=558 (# cursors opened by this proc=558)

YayinoYayino ZAMember ✭✭
edited August 2016 in Xamarin.Android

hi everyone, i seem to get lost with this problem, please point me to right direction;

loading large records from sqlite to a list view

if (sqldb_cursor != null)
{
sqldb_cursor.MoveToFirst();
string[] from = new string[] { "id", "xx", "yy", "zz" };
int[] to = new int[] {
Resource.Id.ID
,
Resource.Id.xx_,
Resource.Id.YY_,
Resource.Id.zz_,
};
SimpleCursorAdapter sqldb_adapter = new SimpleCursorAdapter(this, Resource.Layout.record_view, sqldb_cursor, from, to);
listItems.Adapter = sqldb_adapter;
}
else
{
.....
}

i get the following error

Cursor window allocation of 2048 kb failed. # Open Cursors=558 (# cursors opened by this proc=558)

NB sorry for not markingdown

Best Answer

Answers

Sign In or Register to comment.