Hello!
I'm getting this error when I do a SQL Select from in SQLite.
The data is not big, the query only selecting 3 columns and getting 8 rows of data.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I using a Function that do the query and then return a List to be processed in Main Form.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I try to debug but find nothing wrong with the code.
Other weird thing is, the Function is not always error.
Is there anything wrong with my code?
Thanks
			
			I'm getting this error when I do a SQL Select from in SQLite.
The data is not big, the query only selecting 3 columns and getting 8 rows of data.
			
				Error Log:
			
		
		
		android.database.sqlite.SQLiteBlobTooBigException: Row too big to fit into CursorWindow requiredPos=7, totalRows=8
    at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:859)
    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:159)
    at android.database.sqlite.SQLiteCursor.onMove(SQLiteCursor.java:128)
    at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:237)
    at anywheresoftware.b4a.sql.SQL$CursorWrapper.setPosition(SQL.java:322)
    at anywheresoftware.b4a.sql.SQL$ResultSetWrapper.NextRow(SQL.java:458)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:22)
    at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:267)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.keywords.Common$1.onClick(Common.java:490)
    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:172)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:201)
    at android.app.ActivityThread.main(ActivityThread.java:6831)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927)I using a Function that do the query and then return a List to be processed in Main Form.
			
				Code:
			
		
		
		Public Sub SelectArray(query As String, param() As Object) As List
    Dim result As List
    result.Initialize
   
    Dim resultSet As ResultSet = sqlLite.ExecQuery2(query, param)
   
    Dim columnCount As Int = resultSet.ColumnCount
    Dim rowCount As Int = 0
   
    Do While resultSet.NextRow
        Dim value(columnCount) As Object
       
        For j = 0 To columnCount - 1
            resultSet.Position = rowCount
            value(j) = resultSet.GetString(resultSet.GetColumnName(j))
        Next
       
        result.Add(value)
        rowCount = rowCount + 1
    Loop
   
    Return result
End SubI try to debug but find nothing wrong with the code.
Other weird thing is, the Function is not always error.
Is there anything wrong with my code?
Thanks
 
				 
 
		 
 
		 
					
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		