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. Debug is ok, but Release failed.

Debug is ok, but Release failed.

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingquestionannouncement
2 Posts 2 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.
  • P Offline
    P Offline
    Peter Chan 0
    wrote on last edited by
    #1

    In my project, I used a control that I get from web and I have modified some of its code. When I build the project in Debug situation it could run correctly. But if I build it in Release situation, when I click the contol, it will throw exception and the programe will be failed. Have anybody ever meet such kind of situation? Debug is OK, but Release will failed.

    A 1 Reply Last reply
    0
    • P Peter Chan 0

      In my project, I used a control that I get from web and I have modified some of its code. When I build the project in Debug situation it could run correctly. But if I build it in Release situation, when I click the contol, it will throw exception and the programe will be failed. Have anybody ever meet such kind of situation? Debug is OK, but Release will failed.

      A Offline
      A Offline
      awah
      wrote on last edited by
      #2

      some stuff that might help - try stepping through the codes in debug mode and inspect each values individually to see if they are valid. sometimes u might get a CString or an int holding really strange values/strings that are unexpected - initialize all declarations

      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