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. Debugging NULL call CTDs

Debugging NULL call CTDs

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiondebuggingc++data-structures
3 Posts 2 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
    mnelles
    wrote on last edited by
    #1

    Hi all, I hope you can give me a hint or help about a debugging issue. Out of a minidump I got from a release build, the problem showed as follows: The stack in VC++ debugger when opening the .dmp file, showed: 0x00000000 and nothing else. EIP of course also contained NULL. I then looked at the ESP address to see the stack. There I found the jump-back address to see where the code would continue if the jump that now occurred to 0x00000000 would have been successful. The C++ code there looks like the following: if (variable && variable->SomeFunction() && .....) "variable" is a pointer to an object of a class. The question now is, how can I debug that further. Did "variable" maybe not contain - for some reason - a pointer to an object of the class it should point to where the offset to ->SomeFunction() would be NULL ? Any idea how, for the next iteration of the release software, some code could be added to give more information about the problem - if it still crashes there ? Thanks for any help, Manfred

    F 1 Reply Last reply
    0
    • M mnelles

      Hi all, I hope you can give me a hint or help about a debugging issue. Out of a minidump I got from a release build, the problem showed as follows: The stack in VC++ debugger when opening the .dmp file, showed: 0x00000000 and nothing else. EIP of course also contained NULL. I then looked at the ESP address to see the stack. There I found the jump-back address to see where the code would continue if the jump that now occurred to 0x00000000 would have been successful. The C++ code there looks like the following: if (variable && variable->SomeFunction() && .....) "variable" is a pointer to an object of a class. The question now is, how can I debug that further. Did "variable" maybe not contain - for some reason - a pointer to an object of the class it should point to where the offset to ->SomeFunction() would be NULL ? Any idea how, for the next iteration of the release software, some code could be added to give more information about the problem - if it still crashes there ? Thanks for any help, Manfred

      F Offline
      F Offline
      Frank K
      wrote on last edited by
      #2

      Hi, look at this (Finding crash information using the MAP file): http://www.codeproject.com/debug/mapfile.asp[^] HTH Frank

      M 1 Reply Last reply
      0
      • F Frank K

        Hi, look at this (Finding crash information using the MAP file): http://www.codeproject.com/debug/mapfile.asp[^] HTH Frank

        M Offline
        M Offline
        mnelles
        wrote on last edited by
        #3

        Well, I guess this won't help me when the EIP actually jumped to 00000000 I used the PDB anyway which got me enough information to find the code where the offending jump occured.

        icke

        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