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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. a problem about release and debug

a problem about release and debug

Scheduled Pinned Locked Moved C / C++ / MFC
announcementdebugginghelpquestion
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.
  • V Offline
    V Offline
    vctrlao
    wrote on last edited by
    #1

    my program uses SetItem() to change the image of an item in a list control dynamiclly,it works in debug version,but doesn't work in release version.Why is that?I'm so confused!

    N R L 3 Replies Last reply
    0
    • V vctrlao

      my program uses SetItem() to change the image of an item in a list control dynamiclly,it works in debug version,but doesn't work in release version.Why is that?I'm so confused!

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      It could be related to the initialization of your variables/pointers. Debug version does some "non visible" things that you don't programm but release version doesn't, so what in debug works doesn't have to work in release. Check your code.

      Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

      1 Reply Last reply
      0
      • V vctrlao

        my program uses SetItem() to change the image of an item in a list control dynamiclly,it works in debug version,but doesn't work in release version.Why is that?I'm so confused!

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        Please read Debug vs Release[^]

        “Follow your bliss.” – Joseph Campbell

        1 Reply Last reply
        0
        • V vctrlao

          my program uses SetItem() to change the image of an item in a list control dynamiclly,it works in debug version,but doesn't work in release version.Why is that?I'm so confused!

          L Offline
          L Offline
          loyal ginger
          wrote on last edited by
          #4

          I suggest you add OutputDebugString() calls and use dbgview from sysinternals.com (free utility) to view the debug messages. This works equally well in both debug and release mode build.

          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