memory
Free Memory in C (Can't fix memory leak)
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[详细]
2023-04-13 07:43 分类:问答valgrind Error: Conditional jump or move depends on uninitialised value(s)
I have one program: #include <stdio.h> intcall(){ int x=25; ++x; return x; } int main(){ int p; p=call();[详细]
2023-04-13 06:19 分类:问答Static variables in Android and low memory - a few questions
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[详细]
2023-04-13 03:08 分类:问答Sqlite in iOS memory issues
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[详细]
2023-04-13 02:34 分类:问答address space and byte adressability
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[详细]
2023-04-13 02:33 分类:问答How should I map string keys to values in Java in a memory-efficient way?
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[详细]
2023-04-12 23:57 分类:问答C/C++ Linux: fastest write of a fixed chunk of memory to file (1 Hz)
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.[详细]
2023-04-12 22:50 分类:问答Java: Compact a HashMap (analogue of ArrayList#trimToSize)
Is there开发者_运维问答 a way to compact a HashMap in the sense that you can with an ArrayList through its trimToSize() method?[详细]
2023-04-12 21:36 分类:问答Android Memory Crashes
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开发者_运维[详细]
2023-04-12 20:52 分类:问答Caching images in memory on iOS, what is smaller : a UIImage or NSData object?
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).[详细]
2023-04-12 20:36 分类:问答