<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: win32 console app catch block not catching the Access Violation exception &#8211; Why SEH(Structured Exception Handling) not working in a win32 C++ app</title>
	<atom:link href="http://debuggingblog.com/wp/2009/03/27/win32-console-app-catch-block-not-catching-the-access-violation-exception-why-is-my-sehstructured-exception-handling-not-working-in-a-win32-c-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://debuggingblog.com/wp/2009/03/27/win32-console-app-catch-block-not-catching-the-access-violation-exception-why-is-my-sehstructured-exception-handling-not-working-in-a-win32-c-app/</link>
	<description>Debugging + Random Stuff</description>
	<lastBuildDate>Thu, 23 Feb 2012 17:06:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Janine</title>
		<link>http://debuggingblog.com/wp/2009/03/27/win32-console-app-catch-block-not-catching-the-access-violation-exception-why-is-my-sehstructured-exception-handling-not-working-in-a-win32-c-app/#comment-2486</link>
		<dc:creator>Janine</dc:creator>
		<pubDate>Fri, 16 Dec 2011 15:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://debuggingblog.com/wp/?p=263#comment-2486</guid>
		<description>If I coummnciaetd I could thank you enough for this, I&#039;d be lying.</description>
		<content:encoded><![CDATA[<p>If I coummnciaetd I could thank you enough for this, I&#8217;d be lying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prashant</title>
		<link>http://debuggingblog.com/wp/2009/03/27/win32-console-app-catch-block-not-catching-the-access-violation-exception-why-is-my-sehstructured-exception-handling-not-working-in-a-win32-c-app/#comment-1847</link>
		<dc:creator>prashant</dc:creator>
		<pubDate>Tue, 24 Aug 2010 00:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://debuggingblog.com/wp/?p=263#comment-1847</guid>
		<description>&lt;a href=&quot;#comment-1836&quot; rel=&quot;nofollow&quot;&gt;@KenGartner&lt;/a&gt;,  It depends on where are you trying to use SEH. Is it inside your exe? or is it inside a DLL? For example, once you call LoadLibrary and get the function pointer,  You can use catch(..) in that dll and the function, does that make sense?</description>
		<content:encoded><![CDATA[<p><a href="#comment-1836" rel="nofollow">@KenGartner</a>,  It depends on where are you trying to use SEH. Is it inside your exe? or is it inside a DLL? For example, once you call LoadLibrary and get the function pointer,  You can use catch(..) in that dll and the function, does that make sense?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KenGartner</title>
		<link>http://debuggingblog.com/wp/2009/03/27/win32-console-app-catch-block-not-catching-the-access-violation-exception-why-is-my-sehstructured-exception-handling-not-working-in-a-win32-c-app/#comment-1836</link>
		<dc:creator>KenGartner</dc:creator>
		<pubDate>Wed, 18 Aug 2010 20:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://debuggingblog.com/wp/?p=263#comment-1836</guid>
		<description>I am confused about themper-thread nature of the SEH code.  

I write my DLL using /EHa and am loaded dynamically inside an EXE container that was *not* coded to use /EHa.  When the container creates a thread (presumably there is no SEH mechanism established) and calls the registered callback offered by my DLL, then my code will run without the benefit of catch(...) working.

How can I temporarily set the thread handler to my advantage inside my DLL so I get the benefit of catch(...) without disturbing the EXE container.  Is there a programmatic way of setting SEH up and later tearing it down?

Regards,

Ken Gartner</description>
		<content:encoded><![CDATA[<p>I am confused about themper-thread nature of the SEH code.  </p>
<p>I write my DLL using /EHa and am loaded dynamically inside an EXE container that was *not* coded to use /EHa.  When the container creates a thread (presumably there is no SEH mechanism established) and calls the registered callback offered by my DLL, then my code will run without the benefit of catch(&#8230;) working.</p>
<p>How can I temporarily set the thread handler to my advantage inside my DLL so I get the benefit of catch(&#8230;) without disturbing the EXE container.  Is there a programmatic way of setting SEH up and later tearing it down?</p>
<p>Regards,</p>
<p>Ken Gartner</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Hartley</title>
		<link>http://debuggingblog.com/wp/2009/03/27/win32-console-app-catch-block-not-catching-the-access-violation-exception-why-is-my-sehstructured-exception-handling-not-working-in-a-win32-c-app/#comment-1502</link>
		<dc:creator>James Hartley</dc:creator>
		<pubDate>Tue, 18 Aug 2009 02:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://debuggingblog.com/wp/?p=263#comment-1502</guid>
		<description>Thanks for this, a very detailed and helpful response.</description>
		<content:encoded><![CDATA[<p>Thanks for this, a very detailed and helpful response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://debuggingblog.com/wp/2009/03/27/win32-console-app-catch-block-not-catching-the-access-violation-exception-why-is-my-sehstructured-exception-handling-not-working-in-a-win32-c-app/#comment-1390</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 09 Aug 2009 04:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://debuggingblog.com/wp/?p=263#comment-1390</guid>
		<description>t</description>
		<content:encoded><![CDATA[<p>t</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 3/4 queries in 0.001 seconds using disk: basic
Object Caching 321/322 objects using disk: basic

Served from: debuggingblog.com @ 2012-05-19 03:43:05 -->
