title: SQLite.NET PCL multi thread access MONO
body: <p>I have been using <code>SQLite.Net</code> for <code>Monodroid</code> and <code>Monotouch</code>, To avoid problems with access across threads I used this code to set <code>Serialized</code> mode.</p>
  
  <pre><code>    SQLite.SQLite3.Shutdown();
      SQLite.SQLite3.Config(SQLite.SQLite3.ConfigOption.Serialized);
      SQLite.SQLite3.Initialize();
  </code></pre>
  
  <p>and this did stop any problems (getting <code>SIGSEVC</code> errors).</p>
  
  <p>I have now attempted to move my library code to <code>PCL</code>, so mow using <code>oysteinkrog/SQLite.Net-PCL</code>
  but the option to set Config mode seems not to exist anymore. Searching through the code I have found that in <code>SQLite.Net.Interop.ISQLiteApi</code> the following line.</p>
  
  <pre><code>//        Result Config(ConfigOption option);
  </code></pre>
  
  <p>so the ability to set the config is not implemented.</p>
  
  <p>Now once again I am getting my <code>SIGSEVC</code> error on Monodroid when my background thread returns with updates from a web service.</p>
  
  <p>The database connection is shared using a static connection, and all database access via lock(object).</p>
  
  <p>Questions:</p>
  
  <ol>
  <li>Is it possible to set the Config to Serialized somehow?</li>
  <li>or, is there a better way for me to define my connection and database access to avoid this problem.</li>
  </ol>