I would check the project's optimisation settings. If your project is highly optimised, timings and similar type of problems may occur depending on the types of optimisations. I would try to remove all optimisations to start with to see if it all works as expected first. I had a similar problem where no apparent changes appeared in the code except a few mild optimisations and the whole code went haywire. Innocent looking optimisations can cause a lot of headaches. Regards... [Non-text portions of this message have been removed]
Message
Re: Same code different results
2013-07-27 by Cagri Tanriover