Top "Memory" questions

Use this tag for memory management or issues in programming.

Where in memory are my variables stored in C?

By considering that the memory is divided into four segments: data, heap, stack, and code, where do global variables, static …

c memory memory-management types
What is the best way to add a value to an array in state

I have an array in state, let's say this.state.arr. I want to add something to this state property, …

memory state reactjs
Is Python faster and lighter than C++?

I've always thought that Python's advantages are code readibility and development speed, but time and memory usage were not as …

c++ python performance memory statistics
Fastest way to convert Image to Byte array

I am making Remote Desktop sharing application in which I capture an image of the Desktop and Compress it and …

c# memory bitmap bytearray
How is the java memory pool divided?

I’m currently monitoring a Java application with jconsole. The memory tab lets you choose between: Heap Memory Usage Non-Heap …

java memory pool
Eclipse memory settings when getting "Java Heap Space" and "Out of Memory"

When trying to launch and run a flex/java project in eclipse I kept getting a "Out of Memory Exception" …

java apache-flex eclipse memory
What is causing "Unable to allocate memory for pool" in PHP?

I've occasionally run up against a server's memory allocation limit, particularly with a bloated application like Wordpress, but never encountered "…

php caching memory apc
Converting bytes to megabytes

I've seen three ways of doing conversion from bytes to megabytes: megabytes=bytes/1000000 megabytes=bytes/1024/1024 megabytes=bytes/1024/1000 Ok, I think #3 …

math memory terminology units-of-measurement
What's the difference between a word and byte?

I've done some research. A byte is 8 bits and a word is the smallest unit that can be addressed on …

assembly memory hardware terminology cpu-architecture
stringstream, string, and char* conversion confusion

My question can be boiled down to, where does the string returned from stringstream.str().c_str() live in memory, …

c++ string memory stringstream