[sqlite] (no subject)

2014-10-13 Thread Rohit Kaushal
please unregister me
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Query regarding " Sqlite database opening error "

2014-09-30 Thread Rohit Kaushal
Dear Sir/Mam

While working with SQLITE, we are facing an issue which is as under:


My application starts properly and works fine for about 15 mins. During
this time, the database is created/opened, updated and then closed. The
frequency of this update is about 1 sec. Then suddenly the database becomes
inaccessible with sqlite3_open_v2 returning error code 14 for reasons
unknown to me right now. No other application is accessing this database
system.

I make calls to following code fragments whenever an operation on database
is required :

void open_db()
{
int rc= 1;
//printf(" \n Trying to create database .");

while(rc != 0)
{
rc = sqlite3_open_v2("mydb.db", ,SQLITE_OPEN_CREATE |
SQLITE_OPEN_READWRITE, NULL);
if(rc != 0)
{
printf("\n stderr, ERROR: %s, rc = %d\n", sqlite3_errmsg(db),rc);
sqlite3_close(db);
 }
}
}


void close_db()
{
sqlite3_close(db);
}


I would really appreciate some pointers on this from your side as I am kind
of stuck on this right now.

Thanks and Regards

Rohit Kaushal
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users