D Dominik Böhm Member Licensed User Longtime User Oct 12, 2020 #1 hi, i had an bug in my code where i accidentally changed the key in an map from string to int. after the put with the int key the map grows but the gui in the ide dont shows the new keys. B4X: Dim mTest As Map Dim sIdx As String mTest.Initialize For idx=0 To 5 Dim m1 As Map m1.Initialize sIdx=idx mTest.Put(sIdx, m1) Next Log(mTest.Size) Dim m2 As Map idx=2 sIdx=idx m2 = mTest.Get(sIdx) mTest.Put(idx, m2) Log(mTest.Size)
hi, i had an bug in my code where i accidentally changed the key in an map from string to int. after the put with the int key the map grows but the gui in the ide dont shows the new keys. B4X: Dim mTest As Map Dim sIdx As String mTest.Initialize For idx=0 To 5 Dim m1 As Map m1.Initialize sIdx=idx mTest.Put(sIdx, m1) Next Log(mTest.Size) Dim m2 As Map idx=2 sIdx=idx m2 = mTest.Get(sIdx) mTest.Put(idx, m2) Log(mTest.Size)
Erel B4X founder Staff member Licensed User Longtime User Oct 12, 2020 #2 It is related to the way the debugger sends the data to the IDE. At some point it collects all the key / value pairs in a map of strings, which results in such (almost) duplicates to get removed. Upvote 0
It is related to the way the debugger sends the data to the IDE. At some point it collects all the key / value pairs in a map of strings, which results in such (almost) duplicates to get removed.
D Dominik Böhm Member Licensed User Longtime User Oct 12, 2020 #3 thanks, good to know. I was a little confused when i looked at the ide. won't happen to me again. Upvote 0