Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. About debug version and release version.

About debug version and release version.

Scheduled Pinned Locked Moved C / C++ / MFC
announcementc++debuggingperformancequestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aaron0314
    wrote on last edited by
    #1

    I want to know why the results of debug version and release version are not identical when using VC++? (My program has no memory leak.) who can give me some advice,thanks a lot!;P ;P

    L 1 Reply Last reply
    0
    • A Aaron0314

      I want to know why the results of debug version and release version are not identical when using VC++? (My program has no memory leak.) who can give me some advice,thanks a lot!;P ;P

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      There are LOTS of differences between release and debug versions. You need to give more information if you want help fixing a problem. Also there are articles here on release vs debug versions.

      A 1 Reply Last reply
      0
      • L Lost User

        There are LOTS of differences between release and debug versions. You need to give more information if you want help fixing a problem. Also there are articles here on release vs debug versions.

        A Offline
        A Offline
        Aaron0314
        wrote on last edited by
        #3

        I set 4 level-warning in project settings,and I am sure that all the variables are initialized,but some results aren't the same slightly,for instance:"Waist=75.620499,Knee=36.650490 "in release version and "Waist=75.630901,Knee=37.181105" in debug version.I suspect if the problems consist in float type,thanks for any further help.

        C 1 Reply Last reply
        0
        • A Aaron0314

          I set 4 level-warning in project settings,and I am sure that all the variables are initialized,but some results aren't the same slightly,for instance:"Waist=75.620499,Knee=36.650490 "in release version and "Waist=75.630901,Knee=37.181105" in debug version.I suspect if the problems consist in float type,thanks for any further help.

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          you might want to try a tool like BoundsChecker or Purify. the compiler, even at level 4, doesn't catch everything. -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups