I know that the basic rule of memory management in objective-C is that for every object you do an alloc, you need to release it somewhere.
I\'ve a tableviewcontroller which stores dictionary objects in an Array, when a row gets selected I push a new view controller on the navigation stack and I pass a dictionary object from the array in
I am trying to look at memory management in Java. I have a program that creates a large collection (~500MB). I run java without any special arguments. Once this collection goes out of scope, I invoke
If I have a function I call when there is an error in my app, and I call ExitProcess in that function to exit. Do I need to find a way to have it call things like W开发者_开发知识库SACleanup() and Rel
This is for an iPhone APP written in Objective-C using Xcode 4. The quick question is if you have a function which returns an NSArray which was ALLOC\'ed in that function, do you have to release it?
First of all, I\'m fairly experienced with C++ and understand the basics of threading and thread synchronization. I also want to write a custom memory allo开发者_运维问答cator as a pet project of mine
I am developing application which is using many photos so definitely it crashes though i released the images as some part is shown in following code
could the following code lead to problems? - (void) method1 { NSMutableArray *myArray = [[[NSMutableArray alloc] init] autorelease];
I am trying to run my program to check memory leaks in my program but whenever I start my program I am getting
In an application a String is a often used data type. What we know, is that the mutation of a String uses lots of memory. So what we can do is to use a StringBuilder/StringBuffer.