<?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>Bootstrapping your Application's AppDomainManager</title><link>http://blogs.msdn.com/b/shawnfa/archive/2005/07/25/443038.aspx</link><description>Last time I mentioned that when using pure managed code to setup an AppDomainManager, you should prefer to use the environment variables rather than the registry keys. Once you've decided to use the environment variables, you need to determine a strategy</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Gaaaac, gac, gac.</title><link>http://blogs.msdn.com/b/shawnfa/archive/2005/07/25/443038.aspx#1845831</link><pubDate>Fri, 09 Mar 2007 19:51:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1845831</guid><dc:creator>Marc Hoeppner</dc:creator><description>&lt;p&gt;Gerade noch &amp;#252;berlegte ich, wie man denn programmatisch eine gesignte Assembly in die GAC bekommen k&amp;#246;nnte,&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1845831" width="1" height="1"&gt;</description></item><item><title>re: Bootstrapping your Application's AppDomainManager</title><link>http://blogs.msdn.com/b/shawnfa/archive/2005/07/25/443038.aspx#444707</link><pubDate>Fri, 29 Jul 2005 03:28:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:444707</guid><dc:creator>shawnfa</dc:creator><description>Actually debugging this is pretty easy now that I think about it.  What you want to do is force the application to not relaunch itself.  It will only relaunch itself if it sees that the AppDomainManager is not setup.  So all you need to do is ensure that the debugger sets the environment variables before launching the app for the first time.&lt;br&gt;&lt;br&gt;You could even set the variables, then launch your debugger, which would inherit them and pass them on to the debuggee.&lt;br&gt;&lt;br&gt;-Shawn&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=444707" width="1" height="1"&gt;</description></item><item><title>re: Bootstrapping your Application's AppDomainManager</title><link>http://blogs.msdn.com/b/shawnfa/archive/2005/07/25/443038.aspx#444476</link><pubDate>Thu, 28 Jul 2005 19:38:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:444476</guid><dc:creator>Brien</dc:creator><description>Shawn-&lt;br&gt;&lt;br&gt;I was able to debug by throwing a Debug.Fail() into the code.  It worked if I launched a new copy of DevStudio, but it caused DevStudio to hang if I tried to reuse the instance that launched the shim.  It would be nice if there were some call like Debug.ConnectToParentDebugger() or the like.&lt;br&gt;&lt;br&gt;Brien&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=444476" width="1" height="1"&gt;</description></item><item><title>re: Bootstrapping your Application's AppDomainManager</title><link>http://blogs.msdn.com/b/shawnfa/archive/2005/07/25/443038.aspx#443958</link><pubDate>Wed, 27 Jul 2005 23:07:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:443958</guid><dc:creator>shawnfa</dc:creator><description>Brien -- that's good feedback.  The most obvious way I can think of is to use gflags tool that comes with the Debugging Tools for Windows.  You can use that tool to setup a debugger that is launched whenever an application starts.  This way when the second application is started, a second debugging session will also start.&lt;br&gt;&lt;br&gt;-Shawn&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=443958" width="1" height="1"&gt;</description></item><item><title>re: Bootstrapping your Application's AppDomainManager</title><link>http://blogs.msdn.com/b/shawnfa/archive/2005/07/25/443038.aspx#443955</link><pubDate>Wed, 27 Jul 2005 23:06:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:443955</guid><dc:creator>shawnfa</dc:creator><description>Leon -- in v2.0, you'll need to create an AppDomainManager which interacts and creates new AppDomains.  If you set the Flags property on your AppDomainManager to RegisterWithHost, then you IHostControl::SetAppDomainManager callback will get called with a pointer to your AppDomainManager object.  You can then QI for an interface that you define, and control AppDomains that way.&lt;br&gt;&lt;br&gt;-Shawn&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=443955" width="1" height="1"&gt;</description></item><item><title>re: Bootstrapping your Application's AppDomainManager</title><link>http://blogs.msdn.com/b/shawnfa/archive/2005/07/25/443038.aspx#443899</link><pubDate>Wed, 27 Jul 2005 20:25:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:443899</guid><dc:creator>Brien</dc:creator><description>Is there any way to do this so that it's debugger friendly?  The code example prevents StartApplication from being debugged when you Run the app in the debugger since it is spawned as a new process.&lt;br&gt;&lt;br&gt;Can the shim tell the debugger to start debugging the new process?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=443899" width="1" height="1"&gt;</description></item><item><title>re: Bootstrapping your Application's AppDomainManager</title><link>http://blogs.msdn.com/b/shawnfa/archive/2005/07/25/443038.aspx#443875</link><pubDate>Wed, 27 Jul 2005 19:20:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:443875</guid><dc:creator>Leon</dc:creator><description>Hi, we have a new interface in 2.0 to control the CLR: ICLRRuntimeHost. Earlier samples for CLR hosting used ICLRRuntimeHost::GetDefaultDomain/etc, but in beta 2 any AppDomain creation/manipulation is gone from that interface. How should one GetDefaultDomain/CreateDomain in .NET 2.0? I can't get both ICLRRuntimeHost and ICorRuntimeHost. Thanks for any pointers&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=443875" width="1" height="1"&gt;</description></item></channel></rss>