<?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>Codec &#187; dealloc</title>
	<atom:link href="http://www.trembl.org/codec/tag/dealloc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trembl.org/codec</link>
	<description>A Personal Polylogic Code/Decode &#039;Zettelkasten&#039;</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:38:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>NSZombies</title>
		<link>http://www.trembl.org/codec/81/</link>
		<comments>http://www.trembl.org/codec/81/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 03:33:16 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[dealloc]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[memory leak]]></category>
		<category><![CDATA[zombie]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/?p=81</guid>
		<description><![CDATA[Finding Memory Leaks If you fix a leak and your program starts crashing, your code is probably trying to use an already-freed object or memory buffer. To learn more about memory leaks, see Finding Memory Leaks. You can use the NSZombieEnabled facility to find the code that accesses freed objects. When you turn on NSZombieEnabled, [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Finding Memory Leaks<br />
If you fix a leak and your program starts crashing, your code is probably trying to use an already-freed object<br />
or memory buffer. To learn more about memory leaks, see Finding Memory Leaks.<br />
You can use the NSZombieEnabled facility to find the code that accesses freed objects. When you turn on<br />
NSZombieEnabled, your application logs accesses to deallocated memory, as shown here: </p>
<p><code>2008-10-03 18:10:39.933 HelloWorld[1026:20b] *** -[GSFont ascender]: message sent to<br />
deallocated instance 0x126550 </code></p>
<p>To activate the NSZombieEnabled facility in your application: </p>
<p>1. Choose Project > Edit Active Executable to open the executable Info window.<br />
2. Click Arguments.<br />
3. Click the add (+) button in the “ Variables to be set in the environment” section.<br />
4. Enter NSZombieEnabled in the Name column and YES in the Value column.<br />
5. Make sure that the checkmark forthe NSZombieEnabled entry is selected.
</p></blockquote>
<p><a href="http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/iPhone_Development.pdf">http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/iPhone_Development.pdf</a>, page 55</p>
<p>Also, from Hillegass suggests to set the CFZombieLevel to 16. Cocoa Programming for OSX, 3rd Edition. Page 92</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>- (oneway void)release</title>
		<link>http://www.trembl.org/codec/54/</link>
		<comments>http://www.trembl.org/codec/54/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 08:33:22 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[dealloc]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/?p=54</guid>
		<description><![CDATA[The nicest return value so far.]]></description>
			<content:encoded><![CDATA[<p>The nicest return value so far.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/54/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Observer before dealloc</title>
		<link>http://www.trembl.org/codec/52/</link>
		<comments>http://www.trembl.org/codec/52/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 08:37:15 +0000</pubDate>
		<dc:creator>Georg Tremmel</dc:creator>
				<category><![CDATA[Raw]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[dealloc]]></category>
		<category><![CDATA[memory leak]]></category>
		<category><![CDATA[NSNotificationCenter]]></category>
		<category><![CDATA[observer]]></category>

		<guid isPermaLink="false">http://www.trembl.org/codec/?p=52</guid>
		<description><![CDATA[Remove observer before deallocating, otherwise observer accumulate and eventually crash the application. [[NSNotificationCenter defaultCenter] removeObserver:self];]]></description>
			<content:encoded><![CDATA[<p>Remove observer before deallocating, otherwise observer accumulate and eventually crash the application.</p>
<p><code>[[NSNotificationCenter defaultCenter] removeObserver:self];</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.trembl.org/codec/52/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

