Top "Memory" questions

Use this tag for memory management or issues in programming.

Using Dynamic Memory allocation for arrays

How am I supposed to use dynamic memory allocations for arrays? For example here is the following array in which …

c arrays memory dynamic-memory-allocation
How to get the size of available system memory?

Is it possible to get the size of system available memory in C#.NET? if yes how?

c# .net memory diagnostics
How are integers internally represented at a bit level in Java?

I am trying to understand how Java stores integer internally. I know all java primitive integers are signed, (except short?). …

java memory binary store twos-complement
What is the maximum amount of RAM an app can use?

I am quite curious about this question concerning the memory management of the Android operating system so I hope for …

android memory memory-management out-of-memory android-memory
How do free and malloc work in C?

I'm trying to figure out what would happened if I try to free a pointer "from the middle" for example, …

c memory free malloc
Why aren't pointers initialized with NULL by default?

Can someone please explain why pointers aren't initialized to NULL? Example: void test(){ char *buf; if (!buf) // whatever } The program …

c++ memory pointers initialization
How are multi-dimensional arrays formatted in memory?

In C, I know I can dynamically allocate a two-dimensional array on the heap using the following code: int** someNumbers = …

c arrays memory data-structures stack-memory
Determining memory usage of objects?

I'd like to work out how much RAM is being used by each of my objects inside my current workspace. …

memory r
How do I determine the correct "max-old-space-size" for node.js?

I'm having some trouble to understand how Node.js acts based on the parameter max-old-space-size. In my case, for example, …

node.js memory v8
How to avoid [Errno 12] Cannot allocate memory errors caused by using subprocess module

Complete Working Test Case Of course depending on your memory on the local and remote machines your array sizes will …

python networking memory subprocess paramiko