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. MFC release and Debug build

MFC release and Debug build

Scheduled Pinned Locked Moved C / C++ / MFC
c++debugginghelpannouncementlearning
6 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.
  • B Offline
    B Offline
    bhushan0508
    wrote on last edited by
    #1

    Hi I am trying to run a Legacy MFC application in Debug buil(earlier it was always built in Release Build (with debug info)). While loading resource using LoadToolBar() funtion ::FindResource fails while it succeeds in the Relase build. Can any body help me with this. Thanks and Regards

    L M A 3 Replies Last reply
    0
    • B bhushan0508

      Hi I am trying to run a Legacy MFC application in Debug buil(earlier it was always built in Release Build (with debug info)). While loading resource using LoadToolBar() funtion ::FindResource fails while it succeeds in the Relase build. Can any body help me with this. Thanks and Regards

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

      Without seeing the code that is in error it is impossible to guess what the problem may be.

      1 Reply Last reply
      0
      • B bhushan0508

        Hi I am trying to run a Legacy MFC application in Debug buil(earlier it was always built in Release Build (with debug info)). While loading resource using LoadToolBar() funtion ::FindResource fails while it succeeds in the Relase build. Can any body help me with this. Thanks and Regards

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

        Probably uninitialized variables or invalid/NULL pointers. Have a look at Surviving the Release Version[^]

        I'd rather be phishing!

        A 1 Reply Last reply
        0
        • M Maximilien

          Probably uninitialized variables or invalid/NULL pointers. Have a look at Surviving the Release Version[^]

          I'd rather be phishing!

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          This is the opposite problem of what the OP stated. OP stated: works in release, fails in debug things you're referring to: work in debug, fail in release

          M 1 Reply Last reply
          0
          • B bhushan0508

            Hi I am trying to run a Legacy MFC application in Debug buil(earlier it was always built in Release Build (with debug info)). While loading resource using LoadToolBar() funtion ::FindResource fails while it succeeds in the Relase build. Can any body help me with this. Thanks and Regards

            A Offline
            A Offline
            Albert Holguin
            wrote on last edited by
            #5

            When it comes to resources, it could be any number of things... if you make the call within a dll and not the main application, you have to make sure to have the resources of the main application loaded and not the dll's resources. In any case, hard to tell without more info and some code.

            1 Reply Last reply
            0
            • A Albert Holguin

              This is the opposite problem of what the OP stated. OP stated: works in release, fails in debug things you're referring to: work in debug, fail in release

              M Offline
              M Offline
              Maximilien
              wrote on last edited by
              #6

              My mistake. (the linked article can still offer hints and tips).

              I'd rather be phishing!

              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