Yesterday I had a very strange behaviour when debugging my code.
I used an index variable,
int n=0;
When debugging this index variable was incremented by two severeal times though it should'nt have been when looking at the code.
I added to the code,
n=0;
n=1;
n=5;
n=7;
What was shown in the watch window when stepping these lines was,
n=2
n=4
n=6
n=8
The code is inside a worker thread. I solved the problem by re using an other index variable instead. But I think I better know what is causing this behaviour.
Anybody with an idea?
