Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

So many a question

  1. May 23, 2004 #1
    My program compiled without any errors...I tried to debug and just on the way to finishing the debugging process, it unforutunately ran into memory access violation. I turned on the memory but there were only question marks, I checked the call stack and as the picture enclosed below already showed you, main function and mainCRTStartup were there, written in a way I don't really understand...
    Please take a look at it, I have two questions which I am looking for some ideas intructions or solutions to. What is written in that call stack window ? And why are there so many question marks in the memory window ?

    Thank you very much,

    Attached Files:

  2. jcsd
  3. May 23, 2004 #2
    I think my program didn't work because of my errors in coding, i made this question only to ask for some information about MS VC++ functions which I am really new to especially the debugger...
    If you have any ideas, please just tell me...

    Thank you
  4. May 23, 2004 #3


    User Avatar
    Staff Emeritus

    The easiest way to find bugs in your code is to setup a breakpoint and walk through the program step by step. You can also drag variables to the watch area and see how they change values.
  5. May 23, 2004 #4
    Thank you, i set up a break point and jumped to the code that led to the error but still unable to fix it...

    I have some questions as mentioned in my original post about what is written in the image that I really needs some explanation....if you don't care spending some moments having a look at it...
    Again thank you very much,
  6. May 23, 2004 #5


    User Avatar
    Staff Emeritus

    The call stack is just what it is - a stack filled with function calls. For instance, when you have a recursive function, each time the function is called it is pushed onto the stack. Everytime you exit a function it is popped off the stack. It is basically a way for the computer to track where you are and where it has to go when a function is exited.

    The questions marks mean that there is nothing there or the memory locations are protected.
  7. May 24, 2004 #6
    Thank you for your explanation
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: So many a question
  1. Yor so big (Replies: 3)

  2. Too many processes? (Replies: 5)