<?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"
	>
<channel>
	<title>Comments on: win32 console app catch block not catching the Access Violation exception - 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></description>
	<pubDate>Mon, 06 Sep 2010 16:23:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<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="#comment-1836" rel="nofollow"&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>
