Hi all,
today compiling with Debug a complex program, I unexpectedly read an error message in the log.
So I tried to replicate it in a very simple test project, the one attached to this post.
My hope is that I'm doing something really stupid but it's late and I can't see it.
Otherwise it could be a bug..
Run the program and click on the trash can for the last item. A long error is displayed but the programm still runs and you can delete other items no raising any error (if you avoid to select again the newly set last item).
So, it seems related to RemoveAt and last item in the CLV.
xCLV 1.70
B4J 7.31
Edit: adding a sleep(0) just after the dim Index line it seems to clear the problem.
today compiling with Debug a complex program, I unexpectedly read an error message in the log.
So I tried to replicate it in a very simple test project, the one attached to this post.
My hope is that I'm doing something really stupid but it's late and I can't see it.
Otherwise it could be a bug..
Run the program and click on the trash can for the last item. A long error is displayed but the programm still runs and you can delete other items no raising any error (if you avoid to select again the newly set last item).
So, it seems related to RemoveAt and last item in the CLV.
xCLV 1.70
B4J 7.31
Edit: adding a sleep(0) just after the dim Index line it seems to clear the problem.
B4X:
Dim index As Int = CustomListView1.GetItemFromView(lbl)
Sleep(0)
Attachments
Last edited: