thanks for your reply.
Is it possible that some problem will happen in release version, but will not happen in debug version?
Last week I saw a situation, in debug version the code run result as follews :
startTick = DateTime.Now.Ticks;
while (((DateTime.Now.Ticks - startTick) / 10000) < 100)
{
// do some code
}
Console.WriteLine((DateTime.Now.Ticks - startTick));
the result is aboult 1000000
but in the release version, the result is aboult 200000000.
The same code section exist in two functions in my ap, but only one function happen this situation.
My ap have some unsafe code, it must call some C functions. Is there any reason to explain this situaton?
But today, first I write a small program to test, this situaton dose not happen. Then I try my ap again, this situaton also dose not happen. Dose it happen by chance?
thanks again.
ps: I will take about 6 days new year vacation from tomorrow.
|