memory-management
Releasing allocations in response to low memory warning, but app still crashes
I\'m building an app for viewing photos I pull down from an API. Each photo is ~1MB in size. I\'ve set up a \"slideshow\" to show a photo, then move onto the next one, like a user would actually use t[详细]
2023-04-10 19:32 分类:问答how to check consequence of using free() with new []
A process is crashing with SIGSEV, and the backtraces indicate memory corruption. Valgrind report indicates that there are some \'Mismatched free\', i.e memory allocated with new[] is being released[详细]
2023-04-10 19:07 分类:问答memory allocation for array of strings
As far as I know arrays are allocated statically but strings are dynamic as their length frequently changes during runtime.[详细]
2023-04-10 18:45 分类:问答NSAutoreleasePool and class variables
I\'m getting what looks like a crash due to overreleasing but as far as I can tell I\'m not doing anything wrong, however I may have the wrong idea about AutoreleasePools and class variables.[详细]
2023-04-10 18:14 分类:问答Why does closing the simulator make my app receive SIGTERM when my app is in the background?
When I get this: - (void)applicationWillResignActive:(UIApplication *)application { I release all my objects and invalidate all my timers.[详细]
2023-04-10 16:46 分类:问答What is effect of "System.gc()" in J2ME?
I\'m developing a mobile开发者_开发技巧 application in J2ME. Here I\'m facing memory problem. I\'m facing out of memory error. So please give the ideas of how it get rid out of this kind of error/exce[详细]
2023-04-10 16:31 分类:问答Is it possible to reuse the views in ViewFlipper?
May be a dumb Question.But still, is it possible to reuse the views in viewflipper? Now,i have three 开发者_StackOverflow中文版imageviews in a viewflipper.is it possible to have a single imageview and[详细]
2023-04-10 14:20 分类:问答ANSI C do you have to use malloc() when creating a struct?
Let\'s say I have this struct in ANSI C: typedef struct _point { float x; float y; } Point; and this function to create this struct:[详细]
2023-04-10 13:32 分类:问答Autorelease CFMutableDictionary
How do I autorelease a CFMutableDictionary? I\'m creating it like this: self.mappingByMediatedObject = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryVa[详细]
2023-04-10 08:23 分类:问答linux kernel module memory management
I\'m experimenting with memory management in linux kernel modules and I was wondering why a thread does not see the same memory as the module\'s functions. What I mean is,[详细]
2023-04-10 07:56 分类:问答