-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joanne Pham wrote: > The problem here is the database is not created but if the second process has >tried to access the database then the empty database is created which has the size of 0.
If you use sqlite3_open_v2 then you can specify flags for creation. http://sqlite.org/c3ref/open.html However you still have a race condition as the first process may not have got around to creating a schema/content etc before the second tries to read the database. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklGqcYACgkQmOOfHg372QRwtgCgjlkWDneHVbNPfD96S/oXwrRi dBMAoLL1u5GTo8vGjY/GkD+hrb7HkSxC =cKYG -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users