Hi guys,
I have two apps, App A & App B. App A & App B, have the same database server, but on a different database.
Upon exit, the apps record to database server, time, date, etc when user quit app.
Both App have the same codes to record this event
Sub LogOut
Private reqM As DBRequestManager
If(reqM.IsInitialized = False) Then reqM.Initialize(Me, Main.PUB_SERVER)
Private cmd As DBCommand
cmd.Initialize
cmd.Name = "logout"
cmd.Parameters = Array As Object(UserId, CurrentTime,CurrentDate)
wait for (reqM.ExecuteCommand(cmd, "logout")) JobDone (job As HttpJob)
Activity.Finish
End Sub
App A runs OK without a problems.
On App B, when running for the first time, after quit, on the log window in B4A there is a message
sending message to waiting queue (CallSubDelayed - JobDone)
but App B can quit without a problem, but when running App B for the second time, after users tried to login to App B, the App just quit, won't start.
On log windows, there are an error messages
WakeLock already held
running waiting messages (1)
So, what's wrong with App B?