<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>More on Logging UnhandledExeptions from Managed Add-Ins [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/03/more-on-logging-unhandledexeptions-from-managed-add-ins-jesse-kaplan.aspx</link><description>Last time we discussed some issues to be aware of when trying to build hosts that are resilient to failures in their add-ins. The central idea was to subscribe to the UnhandledException event on the hosts AppDomain and to use the "sender" parameter to</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: More on Logging UnhandledExeptions from Managed Add-Ins [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/03/more-on-logging-unhandledexeptions-from-managed-add-ins-jesse-kaplan.aspx#3100329</link><pubDate>Tue, 05 Jun 2007 19:52:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3100329</guid><dc:creator>Rod da Silva</dc:creator><description>&lt;p&gt;Off topic&lt;/p&gt;
&lt;p&gt;Sorry for this general CLR question but I am hoping some there knows the answer as I am really stumped. &amp;nbsp;I have some .Net code that generates a dynamic assembly. &amp;nbsp;Inside the assembly I emit some code using the ILGenerator.Emit() method. &amp;nbsp;All is working well except that for some reason right in the middle of the IL being generated I am ending up with the following sequence of instructions:&lt;/p&gt;
&lt;p&gt;break&lt;/p&gt;
&lt;p&gt;nop&lt;/p&gt;
&lt;p&gt;nop&lt;/p&gt;
&lt;p&gt;break&lt;/p&gt;
&lt;p&gt;I do not generate these instructions and I can't seem to trace down where they are being generated from or why. &amp;nbsp;I have turned off debug information generation on the assembly to no avail - the instructions continue to show up.&lt;/p&gt;
&lt;p&gt;If I choose to save my assembly to disk (I normally create it to run in memory only) I can dissassemble it and remove the sequence of instructions and reassemble and every thing is fine and verifies nicely. &amp;nbsp;Anybody have any idea why/how these instructions are ending up in my emitted assembly?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;
</description></item><item><title>re: More on Logging UnhandledExeptions from Managed Add-Ins [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/03/more-on-logging-unhandledexeptions-from-managed-add-ins-jesse-kaplan.aspx#4480212</link><pubDate>Mon, 20 Aug 2007 17:16:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4480212</guid><dc:creator>Jeroen Vos</dc:creator><description>&lt;p&gt;How do i go about logging these exceptions without having to specify the logging configuration for each add-in separatly? I just want to configure this in the web.config or app.config of the host application.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jeroen&lt;/p&gt;
</description></item></channel></rss>