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. Release Mode issue

Release Mode issue

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++debuggingquestionannouncement
3 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.
  • D Offline
    D Offline
    dipuks
    wrote on last edited by
    #1

    Hello, I am trying to run my Win32 application in Release mode. The application breaks and it pops up a message box with title "Microsoft Visual C++ Debug Library" and the first line in message box is "Debug Error!" Below that, there is some "Buffer overrun ........." message. And it has 3 buttons, ABORT, RETRY, CANCEL. Just confused why in Release mode it popos up a message box with Debug Error. Is it a problem with Release Configuration setting? Any help is welcome. Thanks in advance!

    S C 2 Replies Last reply
    0
    • D dipuks

      Hello, I am trying to run my Win32 application in Release mode. The application breaks and it pops up a message box with title "Microsoft Visual C++ Debug Library" and the first line in message box is "Debug Error!" Below that, there is some "Buffer overrun ........." message. And it has 3 buttons, ABORT, RETRY, CANCEL. Just confused why in Release mode it popos up a message box with Debug Error. Is it a problem with Release Configuration setting? Any help is welcome. Thanks in advance!

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

      No, it sounds more like a problem with your code - the "Buffer overrun" gives it away. Although...why does it say "Microsoft Visual C++ Debug Library" - are you linking with a release variant of the run-time (in project properties, check C/C++->Code Generation->Runtime Library)? Anyway - if you've got the correct runtime variant, turn on debug information (you can, even in a Release mode app) and run your app under the debugger. See where in your code the exception is raised.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      • D dipuks

        Hello, I am trying to run my Win32 application in Release mode. The application breaks and it pops up a message box with title "Microsoft Visual C++ Debug Library" and the first line in message box is "Debug Error!" Below that, there is some "Buffer overrun ........." message. And it has 3 buttons, ABORT, RETRY, CANCEL. Just confused why in Release mode it popos up a message box with Debug Error. Is it a problem with Release Configuration setting? Any help is welcome. Thanks in advance!

        C Offline
        C Offline
        Cyrilix
        wrote on last edited by
        #3

        Check to see if you're not initializing any pointers to 0. Debug mode will do this for you, but in release mode, a pointer may start off with a garbage value, and consequently, if you try to use it, any one of a number of weird things can happen.

        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