Android Question Bug in B4a?

darabon

Active Member
When I iterate array of the map, in debug mode, the map is not initialized while data is available and when I fetch that, that return valid ata
Why?
I attachment picture when debugging project and watch variable
 

Attachments

  • Capture.JPG
    Capture.JPG
    40.4 KB · Views: 154

darabon

Active Member
If it is a resumable sub then it is indeed a bug in the debugger.

The workaround for now is to set the object directly:
B4X:
Dim card As Map = cards.Get(i)
Note that this is the preferred way as it saves creating an unused (small) object.
No that is Non resumable sub
 
Upvote 0
Top