If anything, it should be returning an error. Literally, it works two times and then it segfaults on the third. The first one was closed before the second was open. The same is true for the second/third. The second one was open in a separate process, but, if anything, it should return "BLOCKED"...
#include <sqlite3.h>
#define DATABASE "yochat_sqlite3.db"
// global
static sqlite3 *db;
// inside my method
int result = sqlite3_open(DATABASE, &db);
why is it segfaulting?
Aucun commentaire:
Enregistrer un commentaire