File I/O Error - SQlite
Posted: Wed 22 Aug 2012 05:35
Hello,
I have an application which should run on an USB stick.
So FM-Win-Application and SQliste DB.
On Application start I connect to the DB and keep it open.
Open tables which I need and keep it open
Now the problem:
When I remove the USB stick (for which reason ever) and connect again and try to access the DB I always get an file io error (On Error).
What can I do to prevent this? Always close the DB/tables after each request/insert??
Or can I "quietly" reconnect to DB after "On Error"??
I have an application which should run on an USB stick.
So FM-Win-Application and SQliste DB.
On Application start I connect to the DB and keep it open.
Open tables which I need and keep it open
Now the problem:
When I remove the USB stick (for which reason ever) and connect again and try to access the DB I always get an file io error (On Error).
What can I do to prevent this? Always close the DB/tables after each request/insert??
Or can I "quietly" reconnect to DB after "On Error"??