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. Conflict between debug & release

Conflict between debug & release

Scheduled Pinned Locked Moved C / C++ / MFC
announcementc++debugginghelpquestion
4 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.
  • K Offline
    K Offline
    kamalesh82
    wrote on last edited by
    #1

    I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem? kamalesh

    N L S 3 Replies Last reply
    0
    • K kamalesh82

      I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem? kamalesh

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      kamalesh82 wrote:

      I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem?

      Reading this[^] article by Joseph should help.


      Nibu thomas A Developer Programming tips[^]  My site[^]

      1 Reply Last reply
      0
      • K kamalesh82

        I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem? kamalesh

        L Offline
        L Offline
        laniakea development
        wrote on last edited by
        #3

        Generally, You have some trouble with optimizations. You have to switch on the release version, and then to REBUILD ALL the code. During the compilation and/or linking process, You have to watch carefully at the bottom of the dev. studio, where the warnings/error messages will be shown. Try to make changes the compiler suggests. If the code doesn't work again, try to switch off as many optimizations as You can. After that, rebuild the code again. You can hope that the code will work OK without any optimization. If the problem disappears, You can try to switch on the optimizations one-by-one, and then rebuild the project any time, searching the bug this way. Anytime, watch on the warnings carefully. By the way, as I know, the stack under debug version has some predefined limit. Try to find the stack settings under the release version, and adjust the value - for example, 1MB or more. D. Senic, Belgrade

        1 Reply Last reply
        0
        • K kamalesh82

          I'm in trying to run a application(vc++)....the exe generated is absolutely running fine in DEBUG version...but when ever i try to rrun in Release version, it's not working properly...this is really a strange problem.... Cud anybody tell me the remedy of this problem? kamalesh

          S Offline
          S Offline
          Steve S
          wrote on last edited by
          #4

          Are you using MFC and custom message handling (ON_MESSAGE, ON_REGISTERED_MESSAGE) at all? If so, check that your handler functions for those messages are declared afx_msg LRESULT funcname(WPARAM,LPARAM) and not anything else. This is a common cause of "works in debug, crashes in release". Alternatively, modify your link properties to generate debugging information, and run the release version under the debugger. You can do this without turning off optimisations. This might help you find the area that's at fault. Steve S Developer for hire

          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