Receive a memory warning + crash when testing through Xcode, but not only on the device?

So, I'm testing my application, and my console logs a message about receiving a memory warning every once in a while, followed by the crash of the application. I am testing my iPad through Xcode.

However, when I try to replicate the error only on the device (launching the application without Xcode), I cannot minimize the application. What's happening? When testing with Xcode, the application looks much more prone to crashes.

thank

+3
source share
2 answers

, : Zombie "" "". .

+2

, . . , , .

, , , -

NSMutableArray *myarray=[NSMutableArray alloc] init];  . .  

 if(myarray)
    {
       [myarray release];
       myarray=nil;
    }
   myarray=[NSMutableArray alloc] init];
+1

All Articles