title: Accessing currently active CLRPolicy from a loaded dll
body: <p>I'm trying to access the application's CLR runtime host and change its policy via the poilcy manager.</p>
  
  <p>The problem is that all the examples i've seen seem to create a new CLR runtime and start it the application with it.</p>
  
  <p>I'm looking for a way to access the CLR runtime that's already running, and use  <code>SetActionOnFailure()</code> to change its failure policies.</p>
  
  <p>So, how can i do that in C# or c++/cli ?</p>
  
  <p>Examples I've found (but don't seem to work on a running CLR runtime host):</p>
  
  <p><a href="http://flylib.com/books/en/4.331.1.80/1/" rel="nofollow">Specifying Escalation Policy Using the CLR Hosting Interfaces</a></p>
  
  <p><a href="http://ghuron.blogspot.com/2007/08/surviving-after-stackoverflowexception.html" rel="nofollow">Surviving after StackOverflowException</a></p>