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. Debugger issues

Debugger issues

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelpquestion
7 Posts 3 Posters 1 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.
  • C Offline
    C Offline
    capricious_001
    wrote on last edited by
    #1

    Hey guys, When I'm running my debugger, I am getting a strange problem that keeps occuring. If I click run, the debugger follow throughs the whole source code and gives me an access violation of 0xC0000005. If I do a run to cursor, then I am forced by the debugger to provide the location of CRT0.C. The program runs fine without the debugger, just doesnt output the correct results. Would anyone know the reason for that? Thanks Robbie

    D S 2 Replies Last reply
    0
    • C capricious_001

      Hey guys, When I'm running my debugger, I am getting a strange problem that keeps occuring. If I click run, the debugger follow throughs the whole source code and gives me an access violation of 0xC0000005. If I do a run to cursor, then I am forced by the debugger to provide the location of CRT0.C. The program runs fine without the debugger, just doesnt output the correct results. Would anyone know the reason for that? Thanks Robbie

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      capricious_001 wrote:

      If I click run...

      Is that F5 or Ctrl+F5?

      capricious_001 wrote:

      The program runs fine...just doesnt output the correct results.

      How can a program run fine but not output the correct results?


      "The largest fire starts but with the smallest spark." - David Crow

      "Judge not by the eye but by the heart." - Native American Proverb

      C 1 Reply Last reply
      0
      • C capricious_001

        Hey guys, When I'm running my debugger, I am getting a strange problem that keeps occuring. If I click run, the debugger follow throughs the whole source code and gives me an access violation of 0xC0000005. If I do a run to cursor, then I am forced by the debugger to provide the location of CRT0.C. The program runs fine without the debugger, just doesnt output the correct results. Would anyone know the reason for that? Thanks Robbie

        S Offline
        S Offline
        Sarath C
        wrote on last edited by
        #3

        check for missing resources. SaRath.
        "It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++

        C 1 Reply Last reply
        0
        • D David Crow

          capricious_001 wrote:

          If I click run...

          Is that F5 or Ctrl+F5?

          capricious_001 wrote:

          The program runs fine...just doesnt output the correct results.

          How can a program run fine but not output the correct results?


          "The largest fire starts but with the smallest spark." - David Crow

          "Judge not by the eye but by the heart." - Native American Proverb

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

          DavidCrow wrote:

          Is that F5 or Ctrl+F5?

          With F5 I get an access violation. CTRL+F5 produces no run-time error and the program is executed.

          DavidCrow wrote:

          How can a program run fine but not output the correct results?

          It does not fail at run-time, meaning there are no run-time errors, but the results it outputs, say to console, is not whats expected.

          1 Reply Last reply
          0
          • S Sarath C

            check for missing resources. SaRath.
            "It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++

            C Offline
            C Offline
            capricious_001
            wrote on last edited by
            #5

            SaRath C wrote:

            check for missing resources.

            What do you mean? Resources in the preprocesser directives? The debuggers resources? Or somewhere else?

            S 1 Reply Last reply
            0
            • C capricious_001

              SaRath C wrote:

              check for missing resources.

              What do you mean? Resources in the preprocesser directives? The debuggers resources? Or somewhere else?

              S Offline
              S Offline
              Sarath C
              wrote on last edited by
              #6

              there's might have entries in the DoDataExchange function of deleted resources! SaRath.
              "It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++

              C 1 Reply Last reply
              0
              • S Sarath C

                there's might have entries in the DoDataExchange function of deleted resources! SaRath.
                "It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++

                C Offline
                C Offline
                capricious_001
                wrote on last edited by
                #7

                SaRath C wrote:

                there's might have entries in the DoDataExchange function of deleted resources!

                Hey Sarath, Do have any good tuts on how to use it, because msdn doesnt provide a good reference and I tried googling it, and the usage of it is vague. I'm not using MFC, so if there is an alternate way of retreiving the desired output from this function would you know how?

                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