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. ATL / WTL / STL
  4. Release vs. Debug in WTL

Release vs. Debug in WTL

Scheduled Pinned Locked Moved ATL / WTL / STL
c++visual-studiodebuggingquestionannouncement
6 Posts 3 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
    mirano
    wrote on last edited by
    #1

    Hi. The application I coded is ATL/WTL windows app, now everything is fine in debug, when I compile it in release it compiles with no errors, however strings for label and other controls are cut off, it shows like only the first letter or nothing. I get the strings from string table in the local resource, and it works fine in debug mode, I also checked the encoding and it is MBCS defined in both release and debug versions. What can cause this behavior? Thanks.

    Sarajevo, Bosnia

    P S 2 Replies Last reply
    0
    • M mirano

      Hi. The application I coded is ATL/WTL windows app, now everything is fine in debug, when I compile it in release it compiles with no errors, however strings for label and other controls are cut off, it shows like only the first letter or nothing. I get the strings from string table in the local resource, and it works fine in debug mode, I also checked the encoding and it is MBCS defined in both release and debug versions. What can cause this behavior? Thanks.

      Sarajevo, Bosnia

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

      Check if you have missed any setting. Have a look at difference betn debug and release[^] for possible cause. Though this article may not be very useful in this context, but may be you get some idea.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      M 1 Reply Last reply
      0
      • P prasad_som

        Check if you have missed any setting. Have a look at difference betn debug and release[^] for possible cause. Though this article may not be very useful in this context, but may be you get some idea.

        Prasad Notifier using ATL | Operator new[],delete[][^]

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

        Thanks, but nothing to help me there, as it pertains mainly to MFC programming. I think I will have to go through Michael Dunn's article about string encodings, hope to find something useful there. Thanks.

        Sarajevo, Bosnia

        1 Reply Last reply
        0
        • M mirano

          Hi. The application I coded is ATL/WTL windows app, now everything is fine in debug, when I compile it in release it compiles with no errors, however strings for label and other controls are cut off, it shows like only the first letter or nothing. I get the strings from string table in the local resource, and it works fine in debug mode, I also checked the encoding and it is MBCS defined in both release and debug versions. What can cause this behavior? Thanks.

          Sarajevo, Bosnia

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          It's likely that you've not initialised a variable - when I've had Release/Debug issues, that's what it's usually been. I always make sure that I include Debug information in Release builds - that way I can use the debugger with Release builds reasonably meaningfully - as long as you keep optimisations turned on and you use the Release version of the C run-time, you've still got a Release build.

          M 1 Reply Last reply
          0
          • S Stuart Dootson

            It's likely that you've not initialised a variable - when I've had Release/Debug issues, that's what it's usually been. I always make sure that I include Debug information in Release builds - that way I can use the debugger with Release builds reasonably meaningfully - as long as you keep optimisations turned on and you use the Release version of the C run-time, you've still got a Release build.

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

            Thanks, I'll give it a try. I am not sure about having debug info in the release build, but I will use it at least for the sake of finding out what the problem is. Thank you.

            Sarajevo, Bosnia

            S 1 Reply Last reply
            0
            • M mirano

              Thanks, I'll give it a try. I am not sure about having debug info in the release build, but I will use it at least for the sake of finding out what the problem is. Thank you.

              Sarajevo, Bosnia

              S Offline
              S Offline
              Stuart Dootson
              wrote on last edited by
              #6

              Some more info - the debug info will be held separately (in a PDB file), so there is a) no symbol information exposed in the EXE, and b) little change in size in the EXE.

              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