SQLite Forum

C api sqlite3_db_readonly returns -1
Login
I open a database 

rc = sqlite3_open_v2(...SQLITE_OPEN_READWRITE...);  // here is ok, the value returned is 0

Then I check if the database is writable 

rc = sqlite3_db_readonly(db, DBF); // here the value of rc is -1 

Then the program crashes with - segmentation fault (core dump)

I need to know which are the causes of the returnining value -1.
Thanks for any help.

Cristian Danciu