What happens when you put the breakpoint on the blue line and step into the code? What functions does it call (if any)? Does the value of pTemp[i] get changed correctly?