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 v. Release

Debug v. Release

Scheduled Pinned Locked Moved C / C++ / MFC
helpannouncementc++windows-admindebugging
7 Posts 5 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.
  • F Offline
    F Offline
    flurinator
    wrote on last edited by
    #1

    Hmm, I'm not sure if this is a common problem. I have a .dll that when compiled under Debug mode in VC++ 6.0, runs perfectly. But when I compile a Release version, the .dll can't correctly access the registry, redraw the window (I'm using InvalidateRect()), and will even throw an error when on exit. So, I'm quite confused as to why this is happening. I don't really understand the difference between Debug and Release, I guess. Does anyone know what sort of compile options could be causing the problems I'm having? thanks! marc m-flury@northwestern.edu

    B M 2 Replies Last reply
    0
    • F flurinator

      Hmm, I'm not sure if this is a common problem. I have a .dll that when compiled under Debug mode in VC++ 6.0, runs perfectly. But when I compile a Release version, the .dll can't correctly access the registry, redraw the window (I'm using InvalidateRect()), and will even throw an error when on exit. So, I'm quite confused as to why this is happening. I don't really understand the difference between Debug and Release, I guess. Does anyone know what sort of compile options could be causing the problems I'm having? thanks! marc m-flury@northwestern.edu

      B Offline
      B Offline
      Baafie
      wrote on last edited by
      #2

      I have the same problem, and I don't know what to do about it. Accessing the registry, that is. Are you using the OpenRegKeyEx or the function(I forgot its name)? Baaf.

      F L 3 Replies Last reply
      0
      • F flurinator

        Hmm, I'm not sure if this is a common problem. I have a .dll that when compiled under Debug mode in VC++ 6.0, runs perfectly. But when I compile a Release version, the .dll can't correctly access the registry, redraw the window (I'm using InvalidateRect()), and will even throw an error when on exit. So, I'm quite confused as to why this is happening. I don't really understand the difference between Debug and Release, I guess. Does anyone know what sort of compile options could be causing the problems I'm having? thanks! marc m-flury@northwestern.edu

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Check out Surviving the Release Version --Mike-- http://home.inreach.com/mdunn/ "Make sure that if you are using a blow torch that you don't set anything on fire."   -- Chris Maunder

        1 Reply Last reply
        0
        • B Baafie

          I have the same problem, and I don't know what to do about it. Accessing the registry, that is. Are you using the OpenRegKeyEx or the function(I forgot its name)? Baaf.

          F Offline
          F Offline
          flurinator
          wrote on last edited by
          #4

          I'm using CRegKey... After reading the article recommended in the second reply, I'm betting my problems is my frequent use of the assert(someFunction() == someVal); programming no-no. Hope that helps!

          1 Reply Last reply
          0
          • B Baafie

            I have the same problem, and I don't know what to do about it. Accessing the registry, that is. Are you using the OpenRegKeyEx or the function(I forgot its name)? Baaf.

            F Offline
            F Offline
            flurinator
            wrote on last edited by
            #5

            I'm using CRegKey... After reading the article recommended in the second reply, I'm betting my problem is my frequent use of the assert(someFunction() == someVal); programming no-no. Hope that helps!

            B 1 Reply Last reply
            0
            • F flurinator

              I'm using CRegKey... After reading the article recommended in the second reply, I'm betting my problem is my frequent use of the assert(someFunction() == someVal); programming no-no. Hope that helps!

              B Offline
              B Offline
              Bret Faller
              wrote on last edited by
              #6

              ASSERT is ignored in Release versions so it doesn't matter if they're there or not. Bret Faller Odyssey Computing, Inc.

              1 Reply Last reply
              0
              • B Baafie

                I have the same problem, and I don't know what to do about it. Accessing the registry, that is. Are you using the OpenRegKeyEx or the function(I forgot its name)? Baaf.

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

                ;P , hai dear i am working e=with registry, my problem 1. i am able to registry key in debug mode where as in release mode it's not opening it's returning error code . if ur having suggestion kindly update me ASAP:rose: anshu

                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