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. Weird Debugging problem

Weird Debugging problem

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingdata-structureshelpquestion
5 Posts 4 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.
  • M Offline
    M Offline
    mcsherry
    wrote on last edited by
    #1

    In a program I've been working on for a while now I've started to have a weird debugging problem. When I hit a breakpoint and start stepping into other methods the debugger will take me to the middle of other methods instead (looking at the call stack the way I've reached the breakpoints is also incorrect, i.e. button click events been called randomly instead of when the user clicks the button). Has anyone came across this before? I've done the usual of doing a clean rebuild, shutting the machine down, swinging round on my chair whilst counting backwards from 100..... :mad: I'm working within Studio 2003. TIA

    D D K M 4 Replies Last reply
    0
    • M mcsherry

      In a program I've been working on for a while now I've started to have a weird debugging problem. When I hit a breakpoint and start stepping into other methods the debugger will take me to the middle of other methods instead (looking at the call stack the way I've reached the breakpoints is also incorrect, i.e. button click events been called randomly instead of when the user clicks the button). Has anyone came across this before? I've done the usual of doing a clean rebuild, shutting the machine down, swinging round on my chair whilst counting backwards from 100..... :mad: I'm working within Studio 2003. TIA

      D Offline
      D Offline
      Deepu Antony
      wrote on last edited by
      #2

      i hope u have tried deleting the files in debug folder(should not leave any file).Then recompile the program.remove all th breakpoints and do start from first... :)

      1 Reply Last reply
      0
      • M mcsherry

        In a program I've been working on for a while now I've started to have a weird debugging problem. When I hit a breakpoint and start stepping into other methods the debugger will take me to the middle of other methods instead (looking at the call stack the way I've reached the breakpoints is also incorrect, i.e. button click events been called randomly instead of when the user clicks the button). Has anyone came across this before? I've done the usual of doing a clean rebuild, shutting the machine down, swinging round on my chair whilst counting backwards from 100..... :mad: I'm working within Studio 2003. TIA

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

        It sounds like the .PDB file is out of sync.


        "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        1 Reply Last reply
        0
        • M mcsherry

          In a program I've been working on for a while now I've started to have a weird debugging problem. When I hit a breakpoint and start stepping into other methods the debugger will take me to the middle of other methods instead (looking at the call stack the way I've reached the breakpoints is also incorrect, i.e. button click events been called randomly instead of when the user clicks the button). Has anyone came across this before? I've done the usual of doing a clean rebuild, shutting the machine down, swinging round on my chair whilst counting backwards from 100..... :mad: I'm working within Studio 2003. TIA

          K Offline
          K Offline
          krmed
          wrote on last edited by
          #4

          Actually, the problem is probably a corrupted .ncb file. Close the project, then delete the .ncb file and also delete any .aps or .clw file that may exist. Then reopen the project and you'll probably be OK. Hope that helps.

          Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

          1 Reply Last reply
          0
          • M mcsherry

            In a program I've been working on for a while now I've started to have a weird debugging problem. When I hit a breakpoint and start stepping into other methods the debugger will take me to the middle of other methods instead (looking at the call stack the way I've reached the breakpoints is also incorrect, i.e. button click events been called randomly instead of when the user clicks the button). Has anyone came across this before? I've done the usual of doing a clean rebuild, shutting the machine down, swinging round on my chair whilst counting backwards from 100..... :mad: I'm working within Studio 2003. TIA

            M Offline
            M Offline
            mcsherry
            wrote on last edited by
            #5

            Hi all, thanks for al of your replies. I tried all of them with no success and then finally found the answer on the MS Support site http://support.microsoft.com/?id=328784[^] This has fixed my problem and I think the problem crept into my program when I integrated some code that someone I work with wrote in a text editor (he switches between Linux and Windows) so this seems the likely culprit. Thanks all again, Andy

            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