Top "Stack-memory" questions

Questions regarding process stack memory.

Is there any limit on stack memory?

I was going through one of the threads. A program crashed because it had declared an array of 10^6 locally inside …

c memory-management operating-system heap-memory stack-memory
c++ shared_ptr of stack object

I have been learning managed pointers lately and ran into the following scenario. I am implementing a model/controller class …

c++ heap-memory smart-pointers stack-memory
Class members allocation on heap/stack?

If a class is declared as follows: class MyClass { char * MyMember; MyClass() { MyMember = new char[250]; } ~MyClass() { delete[] MyMember; } }; And it …

c++ memory-management heap-memory stack-memory
How to measure a functions stack usage in C?

Is there a way I can measure how much stack memory a function uses? This question isn't specific to recursive …

c stack-memory
Stack vs. Heap in .NET

In your actual programming experience, how did this knowledge of STACK and HEAP actually rescue you in real life? Any …

c# .net vb.net heap-memory stack-memory
c# structs/classes stack/heap control?

so in c++ it's very easy. you want whatever class/struct to be allocated on the heap, use new. if …

c# memory-management heap-memory stack-memory
Address of Stack and Heap in C++

Correction: I messed up with the concept of pointer address and the address the pointer points to, so the following …

c++ heap-memory stack-memory
C++ stack memory and CPU cache

I've heard that data placed in the C++ stack most likely appear in the CPU cache. http://www.gamedev.net/…

c++ caching stack-memory
Array of ValueType in C# goes to Heap or Stack?

Possible Duplicate: (C#) Arrays, heap and stack and value types I am trying to study some differences between memory allocation …

c# heap-memory stack-memory
Why are the terms "automatic" and "dynamic" preferred over the terms "stack" and "heap" in C++ memory management?

Related to a lot of questions and answers on SO, I've learned that it's better to refer to objects whose …

c++ heap-memory stack-memory automatic-storage