Application running on Linux Debian (Raspberry Pi. I am using QT4 and SQLite3.c V3.8.6 embedded in the application).using VisualGDB cross compiler running in RPI. The problem occurs on first startup. With the database open via:
sqlite3_open_v2("/home/pi/mydatabase.db", &db, SQLITE_OPEN_READWRITE, NULL ); sqlite3_stmt *stmt; const char s = "select rowid, name from protmaster"; int len = strlen (s); int rc = sqlite3_prepare_v2(db, s, len+1, &stmt, NULL); if (rc == SQLITE_OK && stmt != NULL) { ... } The return code (rc) is SQLITE_OK, but "stmnt" is NULL (0) if I start the application and wait for at least 1 minute, everything works. my application is doing nothing at this point, just waiting for input, which in my cast is clicking on a button. No multi-threading involved. I attempted a quick step thru of the code, but kinda got lost in the parsing. No internal errors were being set Any suggestions would be appreciated. Bob Moran _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users