title: Sqlite - failed to connect database
body: <p><strong>Background:</strong><br>
  1. Its a  c# application using Sqlite databse<br>
  2. This application creates empty db if db is not present and sync data to it from server.</p>
  
  <p><strong>Problem:</strong><br>
  1. Application is getting crashed abruptly sometimes. looks like there is some unhandled exception.
  <br>2. Even I am relaunching the application its immediately getting crashed.</p>
  
  <p><strong>Temporary Solution:</strong><br>
  1. Copy db to other location and delete the original db.<br>
  2. Run the application. No crash. Since no db is present, empty db is getting created by application.<br>
  3. Copy back the backup db and woo hoo Application starts fine without any crash.<br></p>
  
  <p><strong>My Questions:</strong>
  <br>1. How application is working with the same old db as It was crashing the application earlier repeatedly?</p>
  
  <p><strong>Note:</strong><br>
  1. I failed to reproduce this crash in debugging as I dont know the in which scenario it is getting failed. 
  <br>2. Any input will be appreciated so dont hesitate to guess the solution.<br><br>
  <strong>Prediction:</strong><br>
  1. Some supporting temp files are in inconsistent state and causing the problem while connecting to db and when we are creating a new database with the same name then these files are being overwritten with the fresh consistent new files.</p>