Debugging NULL call CTDs
-
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 -
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 -
Hi, look at this (Finding crash information using the MAP file): http://www.codeproject.com/debug/mapfile.asp[^] HTH Frank