title: Exception handling: Is finally executed after throw?
body: <p>Assume you have the following code:</p>
  
  <p>Instead of doing:</p>
  
  <pre><code>Try
      '
      ' Initialize some objects
      '
  
      '
      ' do something that fails
      '
  
      '
      ' Clean up-code that gets not reached because exception
      '
  Catch e As Exception
      '
      'Clean up initialized objects
      '
  
      Throw e
  End Try
  </code></pre>
  
  <p>I would like to do:</p>
  
  <pre><code>Try
      '
      ' Initialize some objects
      '
  
      '
      ' do something that fails
      '
  Catch e As Exception
      Throw e
  Finally
      '
      'Clean up initialized objects
      '
  End Try
  </code></pre>
  
  <p>So my simple question is: In case of an exception is the finally block reached even if there is a throw some lines before?</p>
  
  <p><strong>[EDIT]</strong>
  Thanks for your fast answers.</p>
  
  <p>In first line there will be NullReference-, COM- and FileNotFound-Exceptions I think.</p>
  
  <p>Ok, I will go for this code:</p>
  
  <pre><code>Try
      '
      ' Initialize some objects
      '
  
      '
      ' do something that fails
      '
  Catch e As Exception      ' or just "Catch"??        
      Throw
  Finally
      '
      'Clean up initialized objects
      '
  End Try
  </code></pre>
  
  <p>All the best!</p>
  
  <p>Inno</p>