<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aaron Jefferson Villanueva&#039;s Blog Site&#187; EXC_BAD_ACCESS</title>
	<atom:link href="http://malebolgia.shadowsonawall.net/tag/exc_bad_access/feed" rel="self" type="application/rss+xml" />
	<link>http://malebolgia.shadowsonawall.net</link>
	<description>Programming / Designing Blogging from windows to mac.</description>
	<lastBuildDate>Sun, 06 May 2012 20:03:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NSZombieEnabled Causes memory Leak.</title>
		<link>http://malebolgia.shadowsonawall.net/code-programming/nszombieenabled-causes-memory-leak.html</link>
		<comments>http://malebolgia.shadowsonawall.net/code-programming/nszombieenabled-causes-memory-leak.html#comments</comments>
		<pubDate>Sat, 10 Apr 2010 08:53:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding/Programming]]></category>
		<category><![CDATA[Objective C / Cocoa Touch [iPhone]]]></category>
		<category><![CDATA[EXC_BAD_ACCESS]]></category>
		<category><![CDATA[Memory Leak]]></category>
		<category><![CDATA[NSZombie]]></category>
		<category><![CDATA[Xcode Instrument]]></category>

		<guid isPermaLink="false">http://malebolgia.shadowsonawall.net/?p=220</guid>
		<description><![CDATA[Noobie Mistake while trying to traced memory leak with the app I am working on using the instrument provided by xcode , I got series of pink spikes,  
    

and I'm not sure what was causing it, I thought that the managedObject Context was the culprit. I noticed tons of _NSZombie_ [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #993300;"><img title="Instruments" src="http://malebolgia.shadowsonawall.net/images/xcode/instruments.png" alt="Xcode's Instrument" width="100" height="100" align="right" hspace="50"   />Noobie Mistake</span> while trying to traced memory leak with the app I am working on using the instrument provided by xcode , I got series of pink spikes,  <br /><br />
<a title="Leak Test with Xcode Instrument" rel="rokzoom[instruments]" href="http://malebolgia.shadowsonawall.net/images/xcode/instrumentLeaking.png"> <img title="Leaking" src="http://malebolgia.shadowsonawall.net/images/xcode/instrumentLeaking_small.png" alt="Xcode's Leaking Instrument"  />  </a> <br /><br />

and I'm not sure what was causing it, I thought that the<span style="color: #008000;"> managedObject</span> Context was the culprit. I noticed tons of _<span style="color: #ff0000;"><strong>NSZombie</strong></span>_ prefix listed and I remember that I added the NSZombieEnabled tag under the Argument in "Executable App Info",

 <br /><br />
<a title="Xcode NSZombieEnabled" rel="rokzoom[instruments]" href="http://malebolgia.shadowsonawall.net/images/xcode/NSZombieEnabled_medium.png"> <img title="NSZombieEnabled" src="http://malebolgia.shadowsonawall.net/images/xcode/NSZombieEnabled_small.png" alt="Xcode NSZombieEnabled"  />  </a> <br /><br />

 I added NSZombieEnabled  environment variable because it can be helpful to track down the elusive object causing the problem, mostly tracing the <strong><span style="color: #800000;">EXC_BAD_ACCESS</span></strong> error message. So after I disabled it, the app I am working on had no leak after all.
 <br /><br />
<a title="Leak Test with Xcode Instrument" rel="rokzoom[instruments]" href="http://malebolgia.shadowsonawall.net/images/xcode/instrumentNoLeak.png"> <img title="No Leak" src="http://malebolgia.shadowsonawall.net/images/xcode/instrumentNoLeak_small.png" alt="Xcode's No Leak Instrument"  />  </a> <br /><br />
 </p>
<p> <br /> </p>]]></content:encoded>
			<wfw:commentRss>http://malebolgia.shadowsonawall.net/code-programming/nszombieenabled-causes-memory-leak.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

