SQLiteException close database

Paulsche

Well-Known Member
Licensed User
Longtime User
A user often get an error message when you finish my APP,
somebody has an idea what's it?

Code:
B4X:
Sub BTN00Startseite_beenden_click
   SQLzaehler.Close
   SQLstaende.Close
   File.Copy(File.DirDefaultExternal, "Zaehler.db",File.DirDefaultExternal, "Zaehler-Kopie1.db")
   File.Copy(File.DirDefaultExternal, "Staende.db",File.DirDefaultExternal, "Staende-Kopie1.db")
   Activity.Finish
End Sub
 

Attachments

  • P1020013-1.jpg
    P1020013-1.jpg
    69.3 KB · Views: 180

wl

Well-Known Member
Licensed User
Longtime User
Could it be you are using cursor in your code and you forgot to close them when no longer needed ?

eg:

B4X:
Dim cur As Cursor
...
cur.Close
 
Upvote 0

Paulsche

Well-Known Member
Licensed User
Longtime User
Cursor I have not closed
that will probably be the problem.

thank you
 
Upvote 0

wl

Well-Known Member
Licensed User
Longtime User
Please post if it effectively solved your issue.

It could help others in the future :)
 
Upvote 0
Top