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. Application Crash error

Application Crash error

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebugging
8 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.
  • A Offline
    A Offline
    Atul23
    wrote on last edited by
    #1

    Hi All, I my project when I run the application then it crash and when I debug that application then it is working fine. So can any body give me solution to this problem. Thanks in Advance am

    hi

    D C P N H 5 Replies Last reply
    0
    • A Atul23

      Hi All, I my project when I run the application then it crash and when I debug that application then it is working fine. So can any body give me solution to this problem. Thanks in Advance am

      hi

      D Offline
      D Offline
      Don Box
      wrote on last edited by
      #2

      Send me u'r project.

      Come online at:- jubinc@skype

      1 Reply Last reply
      0
      • A Atul23

        Hi All, I my project when I run the application then it crash and when I debug that application then it is working fine. So can any body give me solution to this problem. Thanks in Advance am

        hi

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

        Have a look at http://www.flounder.com/debug_release.htm[^] :)

        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
        • A Atul23

          Hi All, I my project when I run the application then it crash and when I debug that application then it is working fine. So can any body give me solution to this problem. Thanks in Advance am

          hi

          P Offline
          P Offline
          Peter Weyzen
          wrote on last edited by
          #4

          most often the cause is an unitialized variable... Are there any warnings when you compile your program? Did you fix them?

          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)

          1 Reply Last reply
          0
          • A Atul23

            Hi All, I my project when I run the application then it crash and when I debug that application then it is working fine. So can any body give me solution to this problem. Thanks in Advance am

            hi

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

            In the release you must have no errors in variables initialization, by default the debug version makes "some tricks" that avoid crashes due to bad initializations. Take a look around your code (specially by starting sections that you programmed, altough I recommend you to the whole programm) and be sure that you are giving a "valid" value to EVERY variable you declare. No matter if local, global, one type or another. Use "0", "NULL", "-1" whatever you want, but use something.

            Greetings. -------- 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

            1 Reply Last reply
            0
            • A Atul23

              Hi All, I my project when I run the application then it crash and when I debug that application then it is working fine. So can any body give me solution to this problem. Thanks in Advance am

              hi

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              We are clever guys :laugh: but if you more explain about your program will be helpful.

              N 1 Reply Last reply
              0
              • H Hamid Taebi

                We are clever guys :laugh: but if you more explain about your program will be helpful.

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

                Hamid. wrote:

                We are clever guys

                I like the modestly way you tell it ;) :P

                Greetings. -------- 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

                H 1 Reply Last reply
                0
                • N Nelek

                  Hamid. wrote:

                  We are clever guys

                  I like the modestly way you tell it ;) :P

                  Greetings. -------- 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

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  :laugh:

                  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