G
Guest
I've come across a problem that I just cannot explain. I'm hoping that
someone has seen it before.
I have the following [basic] data structure:
Questions (collection)
Question (object)
Choices (collection)
Choice (object)
I populate Questions[0].Choices with 4 Choice objects - let's call them "A",
"B", "C", "D". They're inserted into the Choices collection in that
order. Then I rearrange the order this way: B C A D I pause
the program and use "QuickWatch" to confirm that the order has indeed
changed. Everything's fine so far.
Then I run a few more lines of code - none of which are changing this data
in ANY WAY and yet when I check back to look at Choices, the order has
changed to: A C A D
I couldn't believe this was happening!!! But I've checked it numerous times
and it IS happening! I've triple checked the lines of code and they are
definitely NOT touching this data model. It almost seems like that "B" is
being changed to an "A" after a certain length of time or else something
external is doing it. But it definitely isn't my code.
How on earth is this possible???
someone has seen it before.
I have the following [basic] data structure:
Questions (collection)
Question (object)
Choices (collection)
Choice (object)
I populate Questions[0].Choices with 4 Choice objects - let's call them "A",
"B", "C", "D". They're inserted into the Choices collection in that
order. Then I rearrange the order this way: B C A D I pause
the program and use "QuickWatch" to confirm that the order has indeed
changed. Everything's fine so far.
Then I run a few more lines of code - none of which are changing this data
in ANY WAY and yet when I check back to look at Choices, the order has
changed to: A C A D
I couldn't believe this was happening!!! But I've checked it numerous times
and it IS happening! I've triple checked the lines of code and they are
definitely NOT touching this data model. It almost seems like that "B" is
being changed to an "A" after a certain length of time or else something
external is doing it. But it definitely isn't my code.
How on earth is this possible???