...and let it run on the emulator once again it behaves differently, the result is different. There is quite some code in the loop and I don't know if Symbian has some kind of "limit for code in loops" or whatever...I just don't get why this happens! To say the truth, the loop I wrote above is in yet another loop in which something similar happens...if I move a statement from the very end to the beginning of the loop ( of course keeping the code equivalent ), it behaves differently.