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. debug vs release

debug vs release

Scheduled Pinned Locked Moved C / C++ / MFC
helpvisual-studiodata-structuresdebuggingquestion
8 Posts 4 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.
  • M Offline
    M Offline
    Marissa182
    wrote on last edited by
    #1

    hi im a little confused i have drag and drop code for a tree view in debug mode it works perfectly it drops the item where its supposed to be dropped however when the code is used in release mode the tree just drops it in the root node of the tree i know im being vague here but i really have no clue where the bug could be since you can't debug while in release mode :P does anyone have any clue how i could track down this iregularity ? any help or any suggestions would be very helpfull thanks Marissa

    A 1 2 Replies Last reply
    0
    • M Marissa182

      hi im a little confused i have drag and drop code for a tree view in debug mode it works perfectly it drops the item where its supposed to be dropped however when the code is used in release mode the tree just drops it in the root node of the tree i know im being vague here but i really have no clue where the bug could be since you can't debug while in release mode :P does anyone have any clue how i could track down this iregularity ? any help or any suggestions would be very helpfull thanks Marissa

      A Offline
      A Offline
      Abebe
      wrote on last edited by
      #2

      Maybe you should check your project's release settings?

      M 1 Reply Last reply
      0
      • A Abebe

        Maybe you should check your project's release settings?

        M Offline
        M Offline
        Marissa182
        wrote on last edited by
        #3

        i have not altered the release or debug settings at all and anyways i dont understand how changing release settings would affect the execution of code the has proven it works in debug also there are no #ifdef _DEBUG or whatever in any of the drag/drop code for the tree view

        A M 2 Replies Last reply
        0
        • M Marissa182

          i have not altered the release or debug settings at all and anyways i dont understand how changing release settings would affect the execution of code the has proven it works in debug also there are no #ifdef _DEBUG or whatever in any of the drag/drop code for the tree view

          A Offline
          A Offline
          Abebe
          wrote on last edited by
          #4

          perhaps you're release application is linking to different dll's than your debug application? Er zit een korstje op mijn aars.

          M 1 Reply Last reply
          0
          • A Abebe

            perhaps you're release application is linking to different dll's than your debug application? Er zit een korstje op mijn aars.

            M Offline
            M Offline
            Marissa182
            wrote on last edited by
            #5

            im not using any dlls other than the mfc dll that gets built into the app

            1 Reply Last reply
            0
            • M Marissa182

              i have not altered the release or debug settings at all and anyways i dont understand how changing release settings would affect the execution of code the has proven it works in debug also there are no #ifdef _DEBUG or whatever in any of the drag/drop code for the tree view

              M Offline
              M Offline
              Michael P Butler
              wrote on last edited by
              #6

              There are a number of ways that debug and release code could be different. Debug usual does not have any optimization performed on it, where release code does to to specify an optimization by default. Debug code also is more forgiving about un-initaliazed variables. This is the first thing I'd check for. Secondly I'd enable debugging on the release build so that you can step through the code and see if you can spot a problem. Michael 'Curiosity's always been my downfall' - The Doctor: The Caves of Androzani

              M 1 Reply Last reply
              0
              • M Marissa182

                hi im a little confused i have drag and drop code for a tree view in debug mode it works perfectly it drops the item where its supposed to be dropped however when the code is used in release mode the tree just drops it in the root node of the tree i know im being vague here but i really have no clue where the bug could be since you can't debug while in release mode :P does anyone have any clue how i could track down this iregularity ? any help or any suggestions would be very helpfull thanks Marissa

                1 Offline
                1 Offline
                1 5kg
                wrote on last edited by
                #7

                1. variable initial 2. windows own-message

                1 Reply Last reply
                0
                • M Michael P Butler

                  There are a number of ways that debug and release code could be different. Debug usual does not have any optimization performed on it, where release code does to to specify an optimization by default. Debug code also is more forgiving about un-initaliazed variables. This is the first thing I'd check for. Secondly I'd enable debugging on the release build so that you can step through the code and see if you can spot a problem. Michael 'Curiosity's always been my downfall' - The Doctor: The Caves of Androzani

                  M Offline
                  M Offline
                  Marissa182
                  wrote on last edited by
                  #8

                  i tried to enable debuging for relase but im not sure i did it right i went in and clicked the enable debugging checkbox in the settings but when i went to debug it said disabling breakpoints program will break at the beggings of execution i guess i must have missed something when trying to turn on debugging

                  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