EDIT: I have changed my program according to suggestions people have made but I am unable to fix memory leaks. Also, I need to free them without using argc, so i need to somehow keep track of the arra
I have one program: #include <stdio.h> intcall(){ int x=25; ++x; return x; } int main(){ int p; p=call();
In my app, I use a static variable to hold the current user id. There is a bug that is very hard to reproduce of this user id simply disappearing. While it could be related to a bug in how this variab
I spent hours trying to fix that but I\'ve just given up; I have no idea what\'s wrong. In my app, I do nested SQL operations to set all my objects correctly. For some reason, sometimes the sqlite3 o
A microprocessor is byte addressable with 24bit address bus and 16bit data bus and one word contains two bytes. I was asked a question regarding attaching peripherals, adding memory, and address space
I\'m looking for a way to store a string->int mapping. A HashMap is, of course, a most obvious solution, but as I\'m memory constrained and need to store 2 million pairs, 7 characters long keys, I nee
On a Linux system, I have one 7MB chunk of memory of fixed size (no growth) whose contents I refresh in a real-time application.
Is there开发者_运维问答 a way to compact a HashMap in the sense that you can with an ArrayList through its trimToSize() method?
I am playing with Cocos2d nowadays and facing lot many memory related issues. Anybody can tell me any best way to manage the memory or find memory crashes. I have tries MAT plugin(http://ww开发者_运维
I\'m working on an image cache on iOS. Images are downloaded from URL and stored in a NSDictionary as a UIImage (I do开发者_如何学Pythonn\'t want or need \"on disk\" cache).