<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8942599.post627724310942284622..comments</id><updated>2010-06-27T09:37:21.310-04:00</updated><category term='AOP'/><category term='Visual Studio'/><category term='Analytics'/><category term='SQL'/><category term='CSS'/><category term='SharePoint'/><category term='rants'/><category term='Windows Services'/><category term='selenium'/><category term='Tips'/><category term='msbuild'/><category term='general'/><category term='opinions'/><category term='windows 7'/><category term='twelve-days-of-code'/><category term='Legacy Projects'/><category term='vegas mix06'/><category term='TDD'/><category term='BDD'/><category term='web 2.0'/><category term='Software Design'/><category term='FxCop'/><category term='selenium toolkit'/><category term='log4net'/><category term='.net'/><category term='fun'/><category term='guided by tests'/><category term='blogging'/><category term='cool tech'/><category term='unity'/><title type='text'>Comments on the urban canuk, eh: Running code in a separate AppDomain</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.bryancook.net/feeds/627724310942284622/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/627724310942284622/comments/default'/><link rel='alternate' type='text/html' href='http://www.bryancook.net/2010/02/running-code-in-separate-appdomain.html'/><author><name>bryan</name><uri>http://www.blogger.com/profile/01332614158223702009</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8942599.post-418130623130591356</id><published>2010-06-27T09:37:21.305-04:00</published><updated>2010-06-27T09:37:21.305-04:00</updated><title type='text'>Good point, Yort.  I hadn&amp;#39;t tried that out in ...</title><content type='html'>Good point, Yort.  I hadn&amp;#39;t tried that out in this post, though it is possible to set up an exception handler for each app domain. I wonder if adding an anonymous delegate to swallow and mark the exception as handled would prevent it from bubbling up to the parent app domain.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/627724310942284622/comments/default/418130623130591356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/627724310942284622/comments/default/418130623130591356'/><link rel='alternate' type='text/html' href='http://www.bryancook.net/2010/02/running-code-in-separate-appdomain.html?showComment=1277645841305#c418130623130591356' title=''/><author><name>bryan</name><uri>http://www.blogger.com/profile/01332614158223702009</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.bryancook.net/2010/02/running-code-in-separate-appdomain.html' ref='tag:blogger.com,1999:blog-8942599.post-627724310942284622' source='http://www.blogger.com/feeds/8942599/posts/default/627724310942284622' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1859931516'/></entry><entry><id>tag:blogger.com,1999:blog-8942599.post-8160049266240534238</id><published>2010-06-25T21:42:18.136-04:00</published><updated>2010-06-25T21:42:18.136-04:00</updated><title type='text'>Unhappily, it appears that from .Net 2.0 on app do...</title><content type='html'>Unhappily, it appears that from .Net 2.0 on app domains DO NOT isolate unhandled exceptions (do a Google search for  the keywords &amp;quot;isolating exceptions in appdomains&amp;quot; for more info.&lt;br /&gt;&lt;br /&gt;An *unhandled* exception in a secondary app domain will still cause the parent domain to unload and the app to shutdown, unless you enable legacy exception handling in the config file (which is generally not recommended). It also seems there is no way to prevent that behaviour.&lt;br /&gt;&lt;br /&gt;If you really want to provide that level of isolation you need to host the clr yourself so you can change the way unhandled exceptions are processed. This seems like overkill for a lot of situtations.&lt;br /&gt;&lt;br /&gt;You can reclaim memory (and unload assemblies) using appdomains like your post suggests though. So other than the suggestion that apddomains isolate exceptions, good article.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/627724310942284622/comments/default/8160049266240534238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8942599/627724310942284622/comments/default/8160049266240534238'/><link rel='alternate' type='text/html' href='http://www.bryancook.net/2010/02/running-code-in-separate-appdomain.html?showComment=1277516538136#c8160049266240534238' title=''/><author><name>Yort</name><uri>http://www.blogger.com/profile/05345639234245424753</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.bryancook.net/2010/02/running-code-in-separate-appdomain.html' ref='tag:blogger.com,1999:blog-8942599.post-627724310942284622' source='http://www.blogger.com/feeds/8942599/posts/default/627724310942284622' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1897963428'/></entry></feed>
