stack-memory
Running out of memory for 2D arrays in C++/CLI?
I\'m dealing with 10 of arrays, some of which are doubles 1024x1392. I\'ve tried to dynamically allocate them on the heap with:[详细]
2023-03-14 07:49 分类:问答C variable allocation time and space
If i have a test.c file with the following #include ... int global = 0; int main() { int local1 = 0; while(1) {[详细]
2023-03-11 18:58 分类:问答heap vs data segment vs stack allocation
Am looking at the following program and not sure how the memory is allocated and why: void function() {[详细]
2023-03-10 00:01 分类:问答Speed comparison between recursive and nonrecursive implementation
I have an complex algorithm which uses really deep recursion. Because there is stack overflow with some specific data I have tried to rewrite it without recursion (using external stack on the heap). S[详细]
2023-03-06 22:47 分类:问答stack memory location
i know the heap memory is the part of ram. but is stack memoryalso the part of ram or stack memory is the part of cpu registers.[详细]
2023-03-01 06:58 分类:问答Difference between initializing a string and not initializing a string in .NET
I would like to know how is memory allocated when initializing a string using the new keyword and when setting a value to the string without 开发者_如何学运维the new keyword.[详细]
2023-02-20 00:04 分类:问答Local struct stored in a global linked list (and accessed in other functions) works in VC2010. Is this correct C99/ANSI?
The following code works fine: typedef struct node_s { void *data; struct node_s *next; } NODE; typedef struct test_s[详细]
2023-02-19 01:52 分类:问答Interpreting App Verifier output: Heap corruption or misinterpreting stack address as heap address?
We have a test case that crashes our big MFC-based app with a heap corruption error. I turned on the page heap using App Verifier for the DLL in question (turning the heap on for the entire process i[详细]
2023-02-12 06:30 分类:问答Dynamic allocation or automatic recommended for subsystem creation?
I am a hobbyist C++ programmer and currently working on a game (using Ogre3D) and I have a question regarding the memory allocation for my main classes.[详细]
2023-02-12 05:59 分类:问答C++ Dynamic vs Stack Objects and How to Use Them [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-02-11 08:00 分类:问答