nszombie

How to use NSzombie in xcode?

my application is crashing very much how do i find the error through nszombie..? could someone tell me step by step guide to use nszombie or valgrind tool to find memory error ,refrence error etc. ...

Breakpoints get deactivated in Xcode: EXC_BAD_ACCESS when NSZombieEnabled == YES

My app crashes at (seemingly) random events. So, I wanted to add NSZombieEnabled to debug my iPhone application. I cloned my target and set its Info.plist to the same as the original target and set NSZombieEnabled to YES. Once i run the app, it crashes with a stack trace of... #0 0x3025db0c in ___forwarding___ () #1 0x30239db2 in __f...

How to handle NSZombies in an asynchronous NSURLConnection?

Hi, I'm currently asynchronously using NSURLConnection with several UIViews (every view handles NSURLConnection as delegate). The problem I have is when user switches views too fast and the delegate becomes NSZombie the app crashes - that is NSURLConnection doesn't have living delegate anymore. So, the first question is if there's a way...

How can I use NSZombie in Xcode to find out where is a memory leak going on ?

How can I use NSZombie to find memory leaks? Will it help to display in which file and at what line a memory leak is going on? ...

NSZombie on a distributed application

Is there any danger in compiling an application for distribution with NSZombie still enabled? I generally leave it turned on for all of my apps while developing because of how useful it is, but I don't understand the full ramifications and potential issues related to enabling it and leaving it on indefinitely. Thanks! ...

GDB dies because of NSZombieEnabled

I was having some problems with memory (exc-bad-access) in Objective-C, XCode, for iPhone, so I searched a little bit and found about the (awesome) NSZombieEnabled. Everyone outhere is just explaining how cool this is ... but it doesn't work for me :/ I followed the following 'tutorial': http://www.cocoadev.com/index.pl?DebuggingAutorel...

NSZombieEnabled does not work

When I set NSZombieEnabled = Yes nothing is written to the console. How can I fix this? Or can you advise me any other tools for an EXC_BAD_ACCESS? ...

XCode - iPhone SDK Zombies

I was just wondering if NSZombiesEnabled is supported when debugging applications using built with a target of the iPhone SDK 3.x Also if it is supported, is there anywhere I can get a list of the possible levels supported? Regards ...

NSZombieEnabled in latest Xcode

How do I set NSZombieEnabled and CFZombieLevel for my executable in the latest version of Xcode? ...

How to debug EXC_BAD_ACCESS that occurs only on release target for an iPhone app?

I'm developing an iPhone application. I have an EXC_BAD_ACCESS that occurs only in the release target; when I build the debug target the exception does not occur. However, when I set the NSZombieEnabled environment variable to YES, I still get the EXC_BAD_ACCESS with no further information. Is it even possible for NSZombieEnabled to work...

EXC_BAD_ACCESS NSUrlConnection

Hi all, i got an EXC_BAD_ACCESS when i perform the last line of the function (webData). -(void)requestSoap{ NSString *requestUrl = @"http://www.website.com/webservice.php"; NSString *soapMessage = @"the soap message"; //website and soapmessage are valid in original code. NSError **error; NSURLResponse *response; //Convert paramete...

NSZombieEnabled breaking working code?

I have the following method in UIImageManipulation.m: +(UIImage *)scaleImage:(UIImage *)source toSize:(CGSize)size { UIImage *scaledImage = nil; if (source != nil) { UIGraphicsBeginImageContext(size); [source drawInRect:CGRectMake(0, 0, size.width, size.height)]; scaledImage = UIGraphicsGetImageFromCu...

Tracking down EXC_BAD_ACCESS without NSZombie?

I've spent two days on this and I still can't find the cause of the crash. I know it has something to do with trying to access an object that has been freed but I don't know which access or which object. Whenever I google trying to find the source of EXC_BAD_ACCESS people suggest using NSZombies. The problem is when I enable zombies...

[iPhone] Analyzing NSZombie

I keep getting bad instruction or bad exception so I enabled NSZombieEnabled and the other vars needed, and I have no idea how to analyze the results. This is what was logged: ToDoWall(1634) malloc: recording malloc stacks to disk using standard recorder ToDoWall(1634) malloc: stack logging compaction turned off; size of log files on d...

-[CALayer retain]: message sent to deallocated instance

Hi there! I'm developing an iphone app and when I turn on my NSZombieEnabled I have regularly a crash on error : *** -[CALayer retain]: message sent to deallocated instance 0xe6012e0 It always come when I push or pop a view in my view controller. Sometimes there's this error before : -[UIApplication endIgnoringInteractionEvents] cal...

NSZombie not logging to console

Hello I am getting an EXC_BAD_ACCESS error on one of my table views. I have tried adding the NSZombieEnabled key to the executables environment variables. It seems to be working in that the screen no longer crashes, but I do not get any messages from the log to indicate what's going on What am I doing wrong? ...

NSZombie shows empty object

Hello! I am experiencing problem and can't find what's wrong. As usual when I saw EXC_BAD_ACCESS message I turned on Instruments with NSZombie activated. When the error occurs and the NSZombie show message: "An Objective-C message was sent to a deallocated object (zombie) at address: 0x10083560" I click on arrow and see empty list. NSZo...

Somehow my singleton properties are getting released.

I have a singleton object called PoolManager that loads and saves some data in a plist. Throughout my program when something needs to know about my pool, it asks the [PoolManager sharedPoolManager] for it's properties. I have a single view that's responsible for setting these properties and all others just read from it. It was all wor...

Can not enable NSZombieEnabled ^^;;;

I am using xcode_3.2.3_and_ios_sdk_4.0.1 and I setup everything the below. To enable it (in xcode) 1. Double-click an executable in the Executables group of your Xcode project. 2. Click the Arguments tab. 3. In the “Variables to be set in the environment:” section, make a variable called “NSZombieEnabled” and set its value to “YES”. Bu...

Zombie Messaged In For Loop

I have an ivar, keys which is an NSMutableArray containing 50 strings. When my view loads, i am getting a zombie messaged error in Instruments, and it is directing me to this line of code: for (int row = 0; row < r; row++) { for (int column = 0; column < c; column++){ otherArray[column][row] = [[[keys objectAtIndex:0] retain...