For y=1 To 5
listItem=oneList.Get(y)
anotherList.Add(list_item)
Next
All variables are properly Dim-ed and initialized.
The above snippet of code sometimes but NOT ALWAYS ,while in the debugger in the context of a much larger program seems to fail in a rather fascinating way.
Checking the value of listItem from oneList as it progresses through the loop is as follows:
item#1
item#2
item#3
item#4
item#5
When checking the contents of anotherList when the loop finishes is as follows:
5(0x5)
item#1
item#1
item#1
item#1
item#1
As far as I can tell the finished app is fine and does not exhibit the behavior.
This being a non-repeatable bug, as sometimes the code seems to do just what I think I'm telling it to do, is a bit maddening.
A Tools>Clean Project does not appear to have any effect one way or another.
listItem=oneList.Get(y)
anotherList.Add(list_item)
Next
All variables are properly Dim-ed and initialized.
The above snippet of code sometimes but NOT ALWAYS ,while in the debugger in the context of a much larger program seems to fail in a rather fascinating way.
Checking the value of listItem from oneList as it progresses through the loop is as follows:
item#1
item#2
item#3
item#4
item#5
When checking the contents of anotherList when the loop finishes is as follows:
5(0x5)
item#1
item#1
item#1
item#1
item#1
As far as I can tell the finished app is fine and does not exhibit the behavior.
This being a non-repeatable bug, as sometimes the code seems to do just what I think I'm telling it to do, is a bit maddening.
A Tools>Clean Project does not appear to have any effect one way or another.