On 1 Mar 2016, at 4:47pm, a a <NoCos30 at hotmail.com> wrote:

> Nope the previous was errored it doesn`t actually check it if the ppDB is 
> allready closed :/
> It works only if it is open and not closed otherwise if sqlite3_close(ppDB) 
> was previously called  it sees it as open again

sqlite3_close() ignores connections which are already closed.  If you call it 
and pass it null, it will return, doing nothing but returning no error message.

So it is safe to issue sqlite3_close() on one connection.

Simon.

Reply via email to