Top "Memory-management" questions

Process of dynamically allocating and freeing portions of physical memory in order to respond to program requests with, if possible, fairness and no starvation among the requesters.

Setting Objects to Null/Nothing after use in .NET

Should you set all the objects to null (Nothing in VB.NET) once you have finished with them? I understand …

c# .net vb.net memory-management null
What is the difference between "new" and "malloc" and "calloc" in C++?

What is the difference between "new" and "malloc" and "calloc" and others in family? (When) Do I need anything other …

c++ memory-management malloc heap
What does the brk() system call do?

According to Linux programmers manual: brk() and sbrk() change the location of the program break, which defines the end of …

c linux unix memory-management brk
Why is my program slow when looping over exactly 8192 elements?

Here is the extract from the program in question. The matrix img[][] has the size SIZE×SIZE, and is initialized …

c++ performance memory-management gcc
Maximum memory which malloc can allocate

I was trying to figure out how much memory I can malloc to maximum extent on my machine (1 Gb RAM 160 …

c memory-management operating-system malloc cpu-architecture
Is it possible to debug "Terminated due to memory error"?

In a certain (consistent) point when my app is running, I consistently get the xcode error message Terminated due to …

ios objective-c memory-management automatic-ref-counting
storing android application data on SD Card

Is there a way to store android application data on the SD card instead of in the internal memory? I …

android memory-management android-sdcard
How does the NSAutoreleasePool autorelease pool work?

As I understand it, anything created with an alloc, new, or copy needs to be manually released. For example: int …

objective-c memory-management nsautoreleasepool foundationkit
Where are constant variables stored in C?

I wonder where constant variables are stored. Is it in the same memory area as global variables? Or is it …

c variables memory-management constants globals
delete vs delete[]

Possible Duplicate: ( POD )freeing memory : is delete[] equal to delete ? When I was taught C++, this was a long time …

c++ memory-management delete-operator