On 28 Jun 2016, at 4:24pm, mon siong <monsi...@yahoo.com> wrote:

> Yes , I always do this check before i proceed next step .  if(rc != 
> SQLITE_OK){ }

Very good.

> I just crash my database with 1 thread keep reading , another thread keep 
> inserting . Here is how i open the DB connection . 
> 
> rc = sqlite3_open_v2(DEFAULT_FAILTS_DB, 
> &db,SQLITE_OPEN_READWRITE|SQLITE_OPEN_SHAREDCACHE|SQLITE_OPEN_FULLMUTEX,NULL);

I still cannot think of a reason that your programs should corrupt the 
database.  I can only guess that you have bad hardware somewhere.

Simon.

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to