Derf Shaya
Member
Hi
I have been having problems using PreoptimizedCLV when the list exceeds a certain length. To debug it, I created a simple project that loads a list of labels. Immediately, there was a crash that I was not able to understand and fix, right after I scroll down past a certain length.
The error message is as follows:
Here is a Google Drive link to the sample project (zip):
I have been having problems using PreoptimizedCLV when the list exceeds a certain length. To debug it, I created a simple project that loads a list of labels. Immediately, there was a crash that I was not able to understand and fix, right after I scroll down past a certain length.
The error message is as follows:
Error:
preoptimizedclv_visiblerangechanged (java line: 486)
java.lang.RuntimeException: Type does not match (class android.widget.TextView)
at anywheresoftware.b4a.objects.B4XViewWrapper.typeDoesNotMatch(B4XViewWrapper.java:387)
at anywheresoftware.b4a.objects.B4XViewWrapper.asPanelWrapper(B4XViewWrapper.java:108)
at anywheresoftware.b4a.objects.B4XViewWrapper.RemoveAllViews(B4XViewWrapper.java:329)
at b4a.example.testpclv.preoptimizedclv._visiblerangechanged(preoptimizedclv.java:486)
at b4a.example.testpclv.main._list_visiblerangechanged(main.java:391)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1178)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7830)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1040)
Here is a Google Drive link to the sample project (zip):