<?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>Justin Carmony &#187; Errors</title>
	<atom:link href="http://www.justincarmony.com/blog/tag/errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justincarmony.com/blog</link>
	<description>Web Designer &#38; Software Engineer</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:30:16 +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>_CGRectZero Error with UITableViewCell</title>
		<link>http://www.justincarmony.com/blog/2008/07/04/_cgrectzero-error-with-uitableviewcell/</link>
		<comments>http://www.justincarmony.com/blog/2008/07/04/_cgrectzero-error-with-uitableviewcell/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 17:06:11 +0000</pubDate>
		<dc:creator>Justin Carmony</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[iPhone SDK]]></category>

		<guid isPermaLink="false">http://www.justincarmony.com/blog/2008/07/04/_cgrectzero-error-with-uitableviewcell/</guid>
		<description><![CDATA[Preface If you haven&#8217;t agreed to the iPhone SDK License Agreement and NDA, please ignore this post, or Apple might hunt you down with their lawyers&#8230; and what a horrible death that would be. Problem I keep getting a build error when trying to subclass the UITableViewCell Solution Add the CoreGraphics.framework to your project Resource ...


Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/01/31/asp-net-systemthreadingthreadabortexception-error/' rel='bookmark' title='ASP .NET &amp; System.Threading.ThreadAbortException Error'>ASP .NET &#038; System.Threading.ThreadAbortException Error</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/05/16/iphone-sdk-dna-a-frustrating-issue/' rel='bookmark' title='iPhone SDK DNA &#8211; A Frustrating Issue'>iPhone SDK DNA &#8211; A Frustrating Issue</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/05/20/iphone-sdk-learning-the-basics-by-removing-the-touch/' rel='bookmark' title='iPhone SDK &#8211; Learning the Basics by Removing the Touch'>iPhone SDK &#8211; Learning the Basics by Removing the Touch</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Preface</h3>
<p>If you haven&#8217;t agreed to the iPhone SDK License Agreement and NDA, please ignore this post, or Apple might hunt you down with their lawyers&#8230; and what a horrible death that would be.</p>
<h3>Problem</h3>
<p>I keep getting a build error when trying to subclass the UITableViewCell</p>
<h3>Solution</h3>
<p>Add the CoreGraphics.framework to your project</p>
<h3>Resource</h3>
<p>Found my a<a href="http://forums.macrumors.com/showthread.php?t=505359">nswer at the MacRumors forums</a>.</p>


<p>Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/01/31/asp-net-systemthreadingthreadabortexception-error/' rel='bookmark' title='ASP .NET &amp; System.Threading.ThreadAbortException Error'>ASP .NET &#038; System.Threading.ThreadAbortException Error</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/05/16/iphone-sdk-dna-a-frustrating-issue/' rel='bookmark' title='iPhone SDK DNA &#8211; A Frustrating Issue'>iPhone SDK DNA &#8211; A Frustrating Issue</a></li>
<li><a href='http://www.justincarmony.com/blog/2008/05/20/iphone-sdk-learning-the-basics-by-removing-the-touch/' rel='bookmark' title='iPhone SDK &#8211; Learning the Basics by Removing the Touch'>iPhone SDK &#8211; Learning the Basics by Removing the Touch</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.justincarmony.com/blog/2008/07/04/_cgrectzero-error-with-uitableviewcell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Practices: Buffering your autoload</title>
		<link>http://www.justincarmony.com/blog/2008/06/23/php-practices-buffering-your-autoload/</link>
		<comments>http://www.justincarmony.com/blog/2008/06/23/php-practices-buffering-your-autoload/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 02:44:56 +0000</pubDate>
		<dc:creator>Justin Carmony</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.justincarmony.com/blog/2008/06/23/php-practices-buffering-your-autoload/</guid>
		<description><![CDATA[I spent 2 hours working on a problem with PHP, Doc-Types, and a website. We started to see symptoms across our website where we would get a 12px space on the top of the page on IE7 (Internet Explorer 7) and FF3 (FireFox 3). We started combing through the HTML markup our website was returning, ...


Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/01/02/php5x-or-php6-argument-for-type-hinting-better-ides/' rel='bookmark' title='PHP5.x or PHP6 &#8211; Argument for Type-Hinting: Better IDEs'>PHP5.x or PHP6 &#8211; Argument for Type-Hinting: Better IDEs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I spent 2 hours working on a problem with PHP, Doc-Types, and a website. We started to see symptoms across our website where we would get a 12px space on the top of the page on IE7 (Internet Explorer 7) and FF3 (FireFox 3). We started combing through the HTML markup our website was returning, and parsing it via <a href="http://www.getfirebug.com/" title="FireBug - FireFox Web Developer Plugin">FireBug</a> I could tell that something was causing our page to parse in correctly.</p>
<p>Later I discovered that an extra space was being added before the Doc-Type was inserted, so it was invalidating our Doc-Type and threw off the parsing of our page on several browsers. After hours of research and debugging I found out a class file that we were loading via <a href="http://us3.php.net/autoload">autoloading</a> was leaking a space to the output. I couldn&#8217;t figure out where, or how. I read and re-read the code 4-5 times before I decided to give up. I couldn&#8217;t figure out where the extra space was coming from.</p>
<p>So I decided to &#8220;buffer protect&#8221; all my code in my autoload. Basically, I did something like this:</p>
<pre class="brush: php; title: ; notranslate">
function __autoload($class_name)
{
   // Start an output buffer to catch all text sent to browser
   ob_start();
   // Load the file
   require_once($class_name.&quot;.php&quot;);
   // Get the contents and save them to no variable. If you wanted to see what was sent to the output
   // you can get it by doing $var = ob_get_contents();
   ob_get_contents();
   // Stop the output buffer and clear its content.
   ob_end_clean();
}
</pre>
<p>That would ensure that if a class on accidently send text to the output, this would protect against it. I hope this helps someone.</p>


<p>Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/01/02/php5x-or-php6-argument-for-type-hinting-better-ides/' rel='bookmark' title='PHP5.x or PHP6 &#8211; Argument for Type-Hinting: Better IDEs'>PHP5.x or PHP6 &#8211; Argument for Type-Hinting: Better IDEs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.justincarmony.com/blog/2008/06/23/php-practices-buffering-your-autoload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP .NET &amp; System.Threading.ThreadAbortException Error</title>
		<link>http://www.justincarmony.com/blog/2008/01/31/asp-net-systemthreadingthreadabortexception-error/</link>
		<comments>http://www.justincarmony.com/blog/2008/01/31/asp-net-systemthreadingthreadabortexception-error/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 20:02:15 +0000</pubDate>
		<dc:creator>Justin Carmony</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://www.justincarmony.com/blog/2008/01/31/asp-net-systemthreadingthreadabortexception-error/</guid>
		<description><![CDATA[While doing some work today I started to run into a ThreadAbortException error. While debugging it spit back this error: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. I was really confused because everything seemed to be working just fine, then I found ...


Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/01/07/asp-net-20-gridviews-hyperlinkfield-and-javascript/' rel='bookmark' title='ASP .NET 2.0, GridViews, HyperLinkField, and JavaScript'>ASP .NET 2.0, GridViews, HyperLinkField, and JavaScript</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p> While doing some work today I started to run into a ThreadAbortException error. While debugging it spit back this error:</p>
<p><em><strong><span id="_ctl0_MainContent_PostFlatView"><span id="_ctl0_MainContent_PostFlatView__ctl0_PostSubject" class="forumName">Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack</span></span></strong></em>.</p>
<p>I was really confused because everything seemed to be working just fine, then I found this forum thread. Turns out there are several causes for this error, but mine was caused by doing a Response.Redirect(); from within a Try-Catch statement. Apparently ASP .NET does not like that.</p>
<p><strong>Workaround</strong></p>
<p>In a try-catch statement, use a boolean variable to mark weather or not to Redirect (or some other variable to accomplish your logic) and preform the Response.Redirect(); <em><strong>outside</strong></em> of your Try Catch. On a side note, I&#8217;ve successfully been able to Redirect from inside the Catch {} aspect, just not the try {}.</p>
<p><strong>Resources</strong></p>
<p>Here is the link to the forums that I found my answer:</p>
<p><a href="System.Threading.ThreadAbortException">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=268544&amp;SiteID=1</a></p>


<p>Related posts:<ol><li><a href='http://www.justincarmony.com/blog/2008/01/07/asp-net-20-gridviews-hyperlinkfield-and-javascript/' rel='bookmark' title='ASP .NET 2.0, GridViews, HyperLinkField, and JavaScript'>ASP .NET 2.0, GridViews, HyperLinkField, and JavaScript</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.justincarmony.com/blog/2008/01/31/asp-net-systemthreadingthreadabortexception-error/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 12/55 queries in 0.019 seconds using memcached
Content Delivery Network via Rackspace Cloud Files: c747925.r25.cf2.rackcdn.com

Served from: www.justincarmony.com @ 2012-02-07 20:39:59 -->
