On 8 July 2017 at 10:48, Simon Slavin <slav...@bigfraud.org> wrote: > On 8 Jul 2017, at 3:33am, domonic <abdom...@hotmail.com> wrote: > > > No I just test the state > > of the database once and then test the output in my if statement. > > > > if(sqlite3_close(.......)) > > { > > > > } > > else if(sqlite3_close(......)) > > { > > > > } > > else if(sqlite3_close(......)) > > { > > > > } > > Glad you found a solution. I recommend you put a one second delay between > those attempts to give any anti-virus or indexing utility time to finish > with the file. >
Note that sqlite3_close on windows already tries to close the file three times times (with a 100ms delay between each attempt). Which is not to say that waiting a second is a bad idea if that does fail, but are you actually hitting the second sqlite3_close? -Rowan _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users