Forgive me if this is a silly question but I'm afraid that I don't know what 'the stack' is.
I know what 'a stack' is and I've learned the FILO/FIFO acronyms. But when people say things like 'a value type is allocated on the stack, not the heap' - I'm afraid I don't really know what that means.
When I introduce a logic error into a recursive function - I'm unable to allocate any more memory to 'the stack' and my app crashes....but I don't really get what it is.
I tried to Google for an answer but only found info on 'a stack' and how to use one.
When I run a .Net App - does it create a single 'stack instance' to act as 'The Stack'? I've seen Stack traces that show me the execution levels of the code - most often when I encounter an unhanded exception...but all I remember being able to see is the methods and the order they were called...wouldn't the stack also have all the variables in scope for each step of the stack.
Maybe I'm just being silly - but I think I could imagine a situation with a recursive function where it would be handy to see the previous value of a variable - from 'the stack' but not have a need to pass it in.
Dunno if that makes any sense - it's awfully late. But I would really appreciate any information anyone has.