E
Enkidu
Beginner question, sorry!
I am using indexers to access an array of StringBuilders in an instance
of a class:
Getting:
value = board1;
Setting:
board1[j] = value1 ;
I loop through the array in the main program using the above to get/set
the members of the array. I find that some of the StringBuilders in the
array are suddenly being set to the same value!
To explain a bit further, while debugging I watch the values in the
array, and when I am processing element 12 for example, elements 13, 14,
15 are set to the same value that I set element 12 to.
What might I be running into? Garbage collection? Thread issues?
Cheers,
Cliff
I am using indexers to access an array of StringBuilders in an instance
of a class:
Getting:
value = board1;
Setting:
board1[j] = value1 ;
I loop through the array in the main program using the above to get/set
the members of the array. I find that some of the StringBuilders in the
array are suddenly being set to the same value!
To explain a bit further, while debugging I watch the values in the
array, and when I am processing element 12 for example, elements 13, 14,
15 are set to the same value that I set element 12 to.
What might I be running into? Garbage collection? Thread issues?
Cheers,
Cliff