title: Unhandled exception in botan.dll
body: <p>I am trying to run the most basic program with botan crypto library. I am using Botan 1.10 32bit. I got the binaries with their installer on Windows 7. IDE is Visual studio 2012.</p>
  
  <p>I linked my project to botan.lib but the program reports a missing botan.dll on startup so I assume that the lib just links to the dll. Therefore I've put the botan.dll in the Debug folder.</p>
  
  <p>Now to the problem.</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  #include &lt;botan/botan.h&gt;
  using namespace Botan;
  using namespace std;
  
  int main(int argc, char* argv[]) {
      try {
          cout &lt;&lt; "d1";
          LibraryInitializer init;  //exception thrown here
      }
      catch(exception&amp; e) {
          cout &lt;&lt; "Exception caught: " &lt;&lt; e.what() &lt;&lt; std::endl;
      }
      cout &lt;&lt; "d2";
      return 0;
  }
  </code></pre>
  
  <p>Intellisense detects everything ok. When I try to debug, I get:</p>
  
  <blockquote>
    <p>First-chance exception at 0x6A1F2AA0 (botan.dll) in rsa.exe:
    0xC0000005: Access violation reading location 0x00310000. Unhandled
    exception at 0x6A1F2AA0 (botan.dll) in rsa.exe: 0xC0000005: Access
    violation reading location 0x00310000.</p>
  </blockquote>
  
  <p>It seems that an exception is thrown inside botan.dll and I can't catch it on my side. I cannot go further from here. </p>
  
  <p>Did I do something wrong linking to the library or is there some other problem? Help appreciated.</p>