A quick question from a beginner.
I'm doing an App for the iPhone and get the following message in Instruments when looking for leaks. Is there anything I have done wrong or is this just how it is? I had some memory leaks in my own library, but I took care of those. But how to solve this?
Thanks
...
Hi everyone,
In my application, I get a memory warning of level 1 and then 2 after repeating some action (choosing a picture + processing) several times and then a crash.
The leak tool doesn't show any leak. I'm also following the Allocations tool in Instruments and my Live Bytes are roughly 4 MB, overall I allocate 113 MB. At maximum ...
Hi
I'm currently hunting down a memory leak in my app for iPhone. I'm using Instruments to track down the code that is causing the leak (becoming more and more a friend of Instruments!). Now Instruments show two lines: one in dark blue (row 146) and one in a lighter blue (150). From some trial and error I get that they are connected som...
I have a navigation controller-based application with 5 view controller inside. When I push a view controller I allocate some memory and when I go back with popViewController my delloc() method is correctly called. I'm sure that the dealloc is called in the right way for every view controller I push and pop.
Nevertheless when I run the ...
I have tested my iphone app using XCode and instrument. I am watching the memory allocation tables, its showing me that every things is increasing i.e Bytes, Live Bytes and so on.
What does it means? Am i not deallocating the objects?
Can i find which objects are not deallocating using instruments?
...
Hello,
I have the following code:
+ (BOOL)updateStatus:(NSString *)status forUsername:(NSString *)username withPassword:(NSString *)password {
NSURL *loginURL = [NSURL URLWithString:@"XYZ"];
ASIFormDataRequest *loginRequest = [[ASIFormDataRequest requestWithURL:loginURL] retain];
[loginRequest setPostValue:@VALUE forKey:@"SOME_KE...
I have a test fixture with an Agilent E4426B RF signal generator connected to a PC via a National Instrument Ethernet-to-GPIB bridge. My software is attempting to sanitize the instrument by presetting it and then saving the current state to all of the memory locations writable via the standard SCPI command "*SAV x,y".
The loop works to...
Hi all,
My application is crashing when I'm launching it in Instruments. No message is shown when I'm pressing Ignore. What could be the reason behind this? The application is running fine in simulator.
...
Hello I am pretty new to iphone development. I have run my app for the first time using the "Leaks" from "Instruments". It shows me several leaks around 20 the smallest is 32 bytes and there is one with 1KB. I have followed the memory management guidelines, (i (think i) understand how and when to use release, not to use it when adding to...
HI,
Using UIRecorder in Instruments comes with IPhone SDK, how to play recorded actions stored as .trace files.Please let me know..!
Thanks
Nagaraj
...
It's not milliseconds for sure.
I think it's microseconds, but couldn't find an authoritative source to confirm it.
...
I had a bunch of leaks reported by instruments when I ran my app in the simulator using instruments. The leaks reported didn't make much sense to me, so I wanted to try on the device. But when I started from instruments it was either unresponsive (it didn't react to touches, I could only press home to quit) or didn't even start just a bl...
So, I wanted to test my RoR app for memory leaks, and I was all like "Hey, Xcode has a tool for that"..
So... I run the RoR server
Then The moment I tell instruments to attach to the process, it dies, and tells me Trace/BPT trap
What is Trace/BPT trap
And how do I test my app for memory leaks?
...
Instruments launches my app on the device and listens to the allocations. (In "Allocations" mode) It launches extremely slow. Then the app quits after about 35 seconds. On the simulator Instruments runs fine.
Is there a solution to this? Is iOS killing my app? How am I supposed to debug this if Instruments increases launch time that much...
I'm trying to push my FPS up on iPhone 3Gs from 30 as high as possible... and I'm running into a couple of issues and thought it would be better to ask for advice.
1) What exactly do the Renderer Utilization and Tiler Utilization columns on the OpenGL ES Instrument signify? My Tiler Utiliation percentage is extremely low, and my Rendere...
I've just been pulling my hair out trying to make Instruments cough up my deliberately constructed memory leaks. My test example looks like this:
class Leaker
{
public:
char *_array;
Leaker()
{
_array=new char[1000];
}
~Leaker()
{
}
};
void *leaker()
{
void *p=malloc(1000);
int *pa=new int[...
Update: this leak has been solved. If you are getting similar leaks and your application is multi-threading, you are most likely making UIKit calls from a background thread; make use of e.g. [NSThread performSelectorOnMainThread:] to route UIKit calls out to the main thread, which is the only place where they are allowed.
I've been runn...
I ran Instruments on my iPad app to check for leaks. It found several "leaks" where an object was being retained in a method:
But these objects are released later in dealloc:
Are these classified as false-positives?
...
I'm using Instruments with the Allocations instrument. I'm testing only a fixed interaction with my app.
I have a navigation controller which goes 4 stages deep. The first two stages are standard table view controllers and the last two are custom controllers with dynamically loaded images.
So I run my app in instruments (via Run with...
I have an App with a Navigation Controller, several sub Controllers.
With XCode Debug I can't find any errors.
With iPhone running unplugged, I can't find any errors.
With Instruments running the App on Simulator it doesn't crash.
With Instruments running the App on iPhone it crashes when I click forth and back between certain ViewCont...