<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/Handling</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 12:21:51 GMT</pubDate>
<item>
<title>(JavaScript) adding events browser compatible - maceblue</title>
<link>http://snipplr.com/view/66418/adding-events-browser-compatible/</link>
<description><![CDATA[ <p>events handling cross-browser</p> ]]></description>
<pubDate>Mon, 30 Jul 2012 17:19:25 GMT</pubDate>
<guid>http://snipplr.com/view/66418/adding-events-browser-compatible/</guid>
</item>
<item>
<title>(SQL) T-SQL Error Handling - amos24c</title>
<link>http://snipplr.com/view/60152/tsql-error-handling/</link>
<description><![CDATA[ <p>Boiler Plate for T-Sql Error handling</p> ]]></description>
<pubDate>Tue, 25 Oct 2011 11:10:10 GMT</pubDate>
<guid>http://snipplr.com/view/60152/tsql-error-handling/</guid>
</item>
<item>
<title>(PHP) Twitter Feed w/ x-time-ago &amp;amp;  Error Handling - ReverentGhost</title>
<link>http://snipplr.com/view/53105/twitter-feed-w-xtimeago---error-handling/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 05 May 2011 16:43:05 GMT</pubDate>
<guid>http://snipplr.com/view/53105/twitter-feed-w-xtimeago---error-handling/</guid>
</item>
<item>
<title>(PHP) PHP Custom Error Handling and Emailing - Nettuts</title>
<link>http://snipplr.com/view/46442/php-custom-error-handling-and-emailing/</link>
<description><![CDATA[ <p>Refer here for a full overview: http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/</p> ]]></description>
<pubDate>Tue, 04 Jan 2011 03:35:02 GMT</pubDate>
<guid>http://snipplr.com/view/46442/php-custom-error-handling-and-emailing/</guid>
</item>
<item>
<title>(PHP) Debuging Mode and Live Mode - Error Handling - sb_01</title>
<link>http://snipplr.com/view/41599/debuging-mode-and-live-mode--error-handling/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 06 Oct 2010 05:29:32 GMT</pubDate>
<guid>http://snipplr.com/view/41599/debuging-mode-and-live-mode--error-handling/</guid>
</item>
<item>
<title>(Python) error handling - obi</title>
<link>http://snipplr.com/view/33028/error-handling/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 23 Apr 2010 12:36:44 GMT</pubDate>
<guid>http://snipplr.com/view/33028/error-handling/</guid>
</item>
<item>
<title>(PHP) PHP Session Class (Light) - JREAM</title>
<link>http://snipplr.com/view/19862/php-session-class-light/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 17 Sep 2009 08:22:29 GMT</pubDate>
<guid>http://snipplr.com/view/19862/php-session-class-light/</guid>
</item>
<item>
<title>(JavaScript) Javascript Global Error Handling - delikassap</title>
<link>http://snipplr.com/view/19189/javascript-global-error-handling/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 02 Sep 2009 16:09:05 GMT</pubDate>
<guid>http://snipplr.com/view/19189/javascript-global-error-handling/</guid>
</item>
<item>
<title>(C++) Average, Minimum, Maximum Grade Computer - woofeR</title>
<link>http://snipplr.com/view/12439/average-minimum-maximum-grade-computer/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 21 Feb 2009 10:40:22 GMT</pubDate>
<guid>http://snipplr.com/view/12439/average-minimum-maximum-grade-computer/</guid>
</item>
<item>
<title>(PHP) PHP Class: MySQL DB Class - mattkenefick</title>
<link>http://snipplr.com/view/6416/php-class-mysql-db-class/</link>
<description><![CDATA[ <p>I deleted the old one by accident trying to edit it.</p> ]]></description>
<pubDate>Thu, 22 May 2008 10:25:37 GMT</pubDate>
<guid>http://snipplr.com/view/6416/php-class-mysql-db-class/</guid>
</item>
<item>
<title>(Pascal) Global Exception Handling - sholmes</title>
<link>http://snipplr.com/view/5446/global-exception-handling/</link>
<description><![CDATA[ <p>« WordPress upgraded to 2.3.1CodeRage II is a Success »Crashing Like VB
I always thought Delphi’s global exception handler was a great feature. It allows your program to continue after an otherwise unhandled exception would have caused it to terminate. Typically in a serious application you would assign your own global exception handler, or used one of the great 3rd part exception handlers like madExcept or Exceptional Magic (I love that name!) They both provide a nice dialog, stack trace, logging and reporting.

Well it turns out that if you want to be Microsoft Windows Vista Logo certified, then you need to crash your application on certain exceptions.

Applications must handle only exceptions that are known and expected, and Windows Error Reporting must not be disabled. If a fault (such as an Access Violation) is injected into an application, the application must allow Windows Error Reporting to report this crash. (from requirement 3.2 Resilient Software: Eliminate Application Failures)

Microsoft’s rational for this requirement is the ISV will receive the error report Microsoft collects for them. I guess most software developers don’t have access to tools like we do in Delphi to catch exceptions and log them for us.

So short of tossing out the Forms unit and writing everything from scratch, how can you get around the usefulness of the global exception handler.

My first thought was to create a custome application exception handler by placing a TApplicationEvents on your main form and assigning the OnException event. In the event include the line

 raise e;
This will pass an exception up to the operating system and terminate your application, at least when I tested it in Delphi 2007. When I tried it in Delphi 7, it didn’t work right.

A more elegant and involved solution:</p> ]]></description>
<pubDate>Sun, 16 Mar 2008 09:09:38 GMT</pubDate>
<guid>http://snipplr.com/view/5446/global-exception-handling/</guid>
</item>
<item>
<title>(PHP) Simple assertion handler - phifty</title>
<link>http://snipplr.com/view/5271/simple-assertion-handler/</link>
<description><![CDATA[ <p>This is a useful debugging utility in lieu of Exception objects</p> ]]></description>
<pubDate>Tue, 04 Mar 2008 21:23:39 GMT</pubDate>
<guid>http://snipplr.com/view/5271/simple-assertion-handler/</guid>
</item>
<item>
<title>(PHP) Show messages about errors using generating JavaScript. - LoRd1990</title>
<link>http://snipplr.com/view/4597/show-messages-about-errors-using-generating-javascript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 Jan 2008 10:13:37 GMT</pubDate>
<guid>http://snipplr.com/view/4597/show-messages-about-errors-using-generating-javascript/</guid>
</item>
<item>
<title>(Python) Python - getFile Internet - whitetiger</title>
<link>http://snipplr.com/view/1600/python--getfile-internet/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:05 GMT</pubDate>
<guid>http://snipplr.com/view/1600/python--getfile-internet/</guid>
</item>
<item>
<title>(C#) Regular Expression to Separate the Anchor Part of a URL - rengber</title>
<link>http://snipplr.com/view/1089/regular-expression-to-separate-the-anchor-part-of-a-url/</link>
<description><![CDATA[ <p>Dots match any charecter, this matches any 7 chars.  You need to change that bit to match a different pattern.</p> ]]></description>
<pubDate>Mon, 18 Sep 2006 20:25:17 GMT</pubDate>
<guid>http://snipplr.com/view/1089/regular-expression-to-separate-the-anchor-part-of-a-url/</guid>
</item>
</channel>
</rss>