title: Firebird error : "operating system directive CreateFile failed" on opening connection
body: <p>I have narrowed done my problem to small sample where this issue can be easily produced.</p>
  
  <p><em><strong>Brief -</em></strong>
  I am using embeded dll's of firebird for database connectivity i.e. fbembed.dll to connect to firebird databases.
  In code, i have three connection strings like this (note additional attribute client library specified in third connection string) -</p>
  
  <pre><code>private const string connection1 = @"User=SYSDBA;Password=masterkey;Database=D:\DB1.fdb;ServerType=1;Charset=UTF8";
  private const string connection2 = @"User=SYSDBA;Password=masterkey;Database=D:\DB2.fdb;ServerType=1;Charset=UTF8";
  private const string connection3 = @"User=SYSDBA;Password=masterkey;Database=D:\DB2.fdb;ServerType=1;client library=D:\fbembed.dll;Charset=UTF8";
  </code></pre>
  
  <p>I have two buttons on UI and on first button click i have this code -</p>
  
  <pre><code>FbConnection fbConnection = new FbConnection(connection1);
  fbConnection.Open();
  </code></pre>
  
  <p>On second button click i have this code -</p>
  
  <pre><code>FbConnection fbConnection = new FbConnection(connection3);
  fbConnection.Open();
  </code></pre>
  
  <p>If i create connection with connection string specified as connection3, i am getting FbException <em>"operating system directive CreateFile failed"</em>.</p>
  
  <p>However, if i replace the connection string as connection2, it works fine.</p>
  
  <p>Moreover, if i create connection with connection3 and then with connection1 no issue but in case i create connection with connection1 and then connection3, same fbexception coming.</p>
  
  <p><em>Note, the database specified in connection2 and connection3 is same but only difference is of additional attribute client library.</em></p>
  
  <p>Why this strange behaviour with embeded firebird. It all works fine in case i have firebird server installed on my system. But, i want to know the issue why it persists in embeded dll's of firebird?</p>