none
Calculated values are different in DEBUG mode and RELEASE mode RRS feed

  • Question

  • Hello,

    I have a small problem. I do some calculation using MS VS 2015 C# .NET 4.6. I am very wonderstruck why results differ in DEBUG mode and in RELEASE mode. It DOES NOT sense.Why ?? C# is NOT capable to calculate simple math equations correctly in DEBUG mode ???  See below, yellow columns are computed in DEBUG mode green columns in RELEASE. All columns have to be zero.There is only one difference - targed. WHY !!! ???

    J.

    Sunday, December 30, 2018 1:28 PM

Answers

  • I ascertained that this is caused by AMD processor because if I run this code on Intel no problem appears. Never mind ...

    Sunday, December 30, 2018 5:00 PM

All replies

  • That is quite peculiar!!  What's your calculation code look like? Do you have a different platform (x86, x64, Any CPU) for Debug and Release? That shouldn't matter either, but maybe there's something screwy there.

    ~~Bonnie DeWitt [C# MVP]

    http://geek-goddess-bonnie.blogspot.com

    Sunday, December 30, 2018 3:34 PM
    Moderator
  • I ascertained that this is caused by AMD processor because if I run this code on Intel no problem appears. Never mind ...

    Sunday, December 30, 2018 5:00 PM
  • I ascertained that this is caused by AMD processor because if I run this code on Intel no problem appears. Never mind ...


    That's weird … but at least it's the Release version that has the correct numbers! So an application to a computer with an AMD processor will at least be correct. Still, that's very strange! 

    ~~Bonnie DeWitt [C# MVP]

    http://geek-goddess-bonnie.blogspot.com

    Sunday, December 30, 2018 5:18 PM
    Moderator
  • yes, it is. this happens if the AMD processor is heavy loaded by calculations...
    Sunday, December 30, 2018 10:07 PM