I detach a thread to my method wich has a while-loop and even if I have an autoreleasePool, I release the objects manually since the while-loop can continue for a while...
The problem is that after a while, the app crashes due to memory problems and if I look in Instruments I can see a huge pile of NSString allocated and a stairway to he...
Hi everyone
I have an, at least to me, strange case here: I have a relatively simple program which loads an XML file from the web, parses it and write the data into an array of dictionaries. Each dictionary represents a row in the table. The program works fine and if I attach my simulator to instruments and load the list, there is no me...
Hello.
I'm using Instument's ObjectAlloc tool in an attempt to understand what the memory my application (iPhone) us doing and when and where it is doing it.
I would really like a basic explanation of these statistics:
Live Bytes
#Living
#Transitory
Overall Bytes
When I am trying to work out how much memory my application is usin...
Running my app in the simulator under Instruments to check for memory leaks, it seems to be indicating a leak in this block of code:
for (NSDictionary *messageDict in messageDataArray)
{
message = [[Message alloc] init];
... set some properties on the 'message' object
[messages addObject:message];
[message release];
}
...
If ObjectAlloc cannot deduce type information for the block, it uses 'GeneralBlock'. Any strategies to get leaks from this block that may eliminate the need of my 'trial and error' methods that I use? The Extended Detail thing doesn't really do it for me as I just keep guessing.
...
I have found some big memory leaks with instruments but have no idea how to figure out where in my code they are. Need some tuts on how to go about that....
...
The Leaks Instrument in Xcode shows me an memory leak here. I have commented the affected line which Leaks is complaining about. But I see no error in my memory management...
- (void)setupViewController {
MyViewController *myVC = [[MyViewController alloc] init];
UITabBarItem *tbi = [[UITabBarItem alloc] initWithTabBarSystemItem...
Used code in entire project:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
UITabBarController *tb = [[UITabBarController alloc] initWithNibName:nil bundle:nil];
[window addSubview:tb.view];
[tb release];
[window setBackgroundColor:[UIColor blackColor]];
[window makeKeyAndVisible];
}
...
I've got a program, which loads the albums artwork in NSOperationQueue and it works like a charm.
Memory usage stays under 800 KB, but the overall allocated (and released of course) memory is about 50 MB.
My problem is memory rans out and the iPod player is killed by the OS. I've got a memory warning, but I don't have anything to relea...
See the screenshot below, this is the only leak the Leaks Instrument finds in my app. Seems odd that main is leaking since it's out-of-the-box. Is this common?
...
I have an app that uses a tableview, along with a UIButton that I add as a subview to each custom cell, like this:
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
chec...
post same question at apple developer forum ,too
hi
first sorry that my english is poor..
i want develop iphone application that playing musical instrument like 'ocarina'
but don't need blow mic features.
so first i tried to find that how implementation 'virtual musical instrument ' in iphone development.
the during the decide imple...
Hello! I’d like to use Instruments to peek at some third-party applications on my iPhone, is that possible? If I attach Instruments to some of the applications I develop, everything goes well. But when I try to load some other application, Instruments complain that they can’t “get task for pid XY.” Is that a security measure?
...
I can't get my application running with instruments. I tried running through xcode with run->start with performance tool, instruments starts, iPod gets stuck and restarts everytime. It is really annoying. I am on 10.6.2, xcode 3.2.2 and using 3.2.1 SDK. Need help!
...
I tracked down a memory leak with instruments. I always end up with the information that the responsible library is Foundation. When I track that down in my code, I end up here, but there's nothing wrong with my memory management:
- (void)setupTimer {
// stop timer if still there
[self stopAnimationTimer];
NSTimer *timer = ...
Hi Guys,
I have to check memory performance of my application, I have solved Leaks now I want to improve the performance of memory.
So, please tell me the process how can I fix and improve the memory performance.
Thank You.
...
When using the "Gather Leaked Memory Contents" of the Leaks Instrument, it seems to give me only the hex contents of an object, rather than showing me the ASCII string beside it (like every other hex dump in the world ever). Worse still, this box is un-selectable, I cannot even copy it into a decent hex editor for a string view.
Is ther...
I've got a difficult drawing bug that I am trying to track down. I know what is going on - during the draw routine, the region returned by GetPortVisibleRegion is wrong. I believe it is because someone has done something to cause SetPortVisibleRegion to be called with the bad region. I cannot just search for all of the calls to SetPortVi...
I'm trying to track down some peculiar memory behavior in my Cocoa desktop app. My app does a lot of image processing using NSImage and uploads those images to a website over HTTP using NSURLConnection.
After uploading several hundred images (some very large), when I run Instrument I get no leaks. I've also run through MallocDebug and ...
I'm developing a game for the iPhone. I've decided that 30FPS is plenty so I've written some code that only allows the App to present the render buffer every 1/30 of a second. When I tried to verify this with Instruments I got varying information.
On an iPod Touch (2009 edition, 32G) it reports 30 FPS for Core Animation Frames Per Sec...