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. prob. regarding release and debug build

prob. regarding release and debug build

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingannouncement
8 Posts 7 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.
  • C Offline
    C Offline
    Chanda com
    wrote on last edited by
    #1

    hello i have developed a application.when i build it in debug mode it works fine but when i build it in release mode it gets crashed. can anybody help me in this issue . what might be the problem thanking you chan

    P T R A J 5 Replies Last reply
    0
    • C Chanda com

      hello i have developed a application.when i build it in debug mode it works fine but when i build it in release mode it gets crashed. can anybody help me in this issue . what might be the problem thanking you chan

      P Offline
      P Offline
      parths
      wrote on last edited by
      #2

      Check your memory handling / array bounds. In VC the Debug build generates safety pads for mem allocations / access, The release mode doesn't. Check MSDN for more information. A search for 'Debug Build' will give you quite a few useful hints. "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman

      C 1 Reply Last reply
      0
      • P parths

        Check your memory handling / array bounds. In VC the Debug build generates safety pads for mem allocations / access, The release mode doesn't. Check MSDN for more information. A search for 'Debug Build' will give you quite a few useful hints. "It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman

        C Offline
        C Offline
        Chanda com
        wrote on last edited by
        #3

        thanx for ur answer. is it necessary to ship application in release build? if i have small exe then why not to ship it in debug build as it generates safety pads for mem allocations / access? thanking you chan

        L 1 Reply Last reply
        0
        • C Chanda com

          thanx for ur answer. is it necessary to ship application in release build? if i have small exe then why not to ship it in debug build as it generates safety pads for mem allocations / access? thanking you chan

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

          Yes, you must ship the release-version. As far as I know it is not allow to redistribute the debug-versions of the VC-DLLs. regards

          1 Reply Last reply
          0
          • C Chanda com

            hello i have developed a application.when i build it in debug mode it works fine but when i build it in release mode it gets crashed. can anybody help me in this issue . what might be the problem thanking you chan

            T Offline
            T Offline
            tareqsiraj
            wrote on last edited by
            #5

            take a look at the following page .. maybe it will help. http://www.geocities.com/firepower\_50ae/CodeNote/WinAPIfaq.html#141 -Tareq

            1 Reply Last reply
            0
            • C Chanda com

              hello i have developed a application.when i build it in debug mode it works fine but when i build it in release mode it gets crashed. can anybody help me in this issue . what might be the problem thanking you chan

              R Offline
              R Offline
              Roger Allen
              wrote on last edited by
              #6

              This article should be of help Surviving the Release Version[^] Roger Allen Sonork 100.10016 Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003

              1 Reply Last reply
              0
              • C Chanda com

                hello i have developed a application.when i build it in debug mode it works fine but when i build it in release mode it gets crashed. can anybody help me in this issue . what might be the problem thanking you chan

                A Offline
                A Offline
                AlexO
                wrote on last edited by
                #7

                You might not know this, but if you build release with pdb files (debug information) you can actually debug (with some limitations like optimized code etc.) your release build. This way you can at least find where in your program that fault occurs.

                1 Reply Last reply
                0
                • C Chanda com

                  hello i have developed a application.when i build it in debug mode it works fine but when i build it in release mode it gets crashed. can anybody help me in this issue . what might be the problem thanking you chan

                  J Offline
                  J Offline
                  Jonathan Craig
                  wrote on last edited by
                  #8

                  One classic reason for this is to define a ON_MESSAGE handler incorrectly. The prototype for the ON_MESSAGE hander is: afx_msg long OnMyMessage(WPARAM wParam, LPARAM lParam); But, if you define it like this: afx_msg **void** OnMyMessage(WPARAM wParam, LPARAM lParam); It will work fine in debug mode and crash in release mode. You get no warnings and it can be very, very hard to debug (because it works in debug mode). This one has got me before. It took about 2 days to figure it out. Hope this helps... :) Jonathan Craig www.mcw-tech.com Jonathan Craig www.mcw-tech.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