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 problem ?

Release mode problem ?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiondebuggingannouncement
6 Posts 6 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.
  • S Offline
    S Offline
    Sakthiu
    wrote on last edited by
    #1

    Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.

    M P C J J 5 Replies Last reply
    0
    • S Sakthiu

      Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.

      M Offline
      M Offline
      Mila025
      wrote on last edited by
      #2

      Hi, hm ... check if all pointers are initialized

      ----------- Mila

      1 Reply Last reply
      0
      • S Sakthiu

        Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.

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

        Require neat code review . Refer this[^] article for better understanding.

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

        1 Reply Last reply
        0
        • S Sakthiu

          Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          As stated by Mila025 maybe an initialization problem. uninitialized vars gets zeroes in debug mode, but gets garbage in release one. For instance if you pass a struct to a Windows API, and you not initialize it, then maybe zeroes will be harmless, while garbage will make your program crash. hope that helps :) -- modified at 6:11 Friday 29th December, 2006

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          1 Reply Last reply
          0
          • S Sakthiu

            Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.

            J Offline
            J Offline
            jk chan
            wrote on last edited by
            #5

            Which is the error you getting ?

            If u can Dream... U can do it

            1 Reply Last reply
            0
            • S Sakthiu

              Hi All, My program is fine when working with Debug mode. But When it is with Release mode it is giving run time error.. What it is ? Really what is happening behind this ? Kindly Help me... Thanks.

              J Offline
              J Offline
              Joan M
              wrote on last edited by
              #6

              This is something very common, You should look: - If your pointers are correctly initialized. - If you are using some dll's or specific external files or programs, you should take a look if they are placed in the debug and in the release folders. (think that if somewhere of the app you are using something like GetAppPath() then you can have some problems related to files that could be in the debug folder but not in teh release one. - Look in the project options that you have the same configuration in the DEBUG than in the RELEASE. - There can be several other things, this can be hard to find out what is happening, but if you cannot find the problem you can always try to use MessageBoxes spreaded from the beggining to the end in order to be able to give us more information on what's happening, where and when. Hope this helps even if it is not a very good answer.

              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