Hi to everybody
As i said in my last post, i have a webApp (B4j non UI App) that work with varius SQLite databases
Sub Process_Globals
Public BD1 As SQL
Public BD2 As SQL
...
End Sub
All Updates operations (Insert, Update and Delete) are made by Transaction (like this)
Sub LoginClear
BD1.BeginTransaction
Try
BD1.ExecNonQuery("DELETE FROM LOGINS")
BD1.TransactionSuccessful
Catch
Log(LastException)
BD1.Rollback
End Try
End Sub
And before stop the server, i close all the connections
Public Sub AppClose
BD1.Close
BD2.Close
…
ExitApplication
End Sub
But i have two questions:
Must i do StopMessageLoop before ExitApplication?
And what will happen if any user is updating any database when i stop de app?
Thanks in advance