Hi,
when i try close connection with JDBC driver freeze app. Can i force async close?.
I tried this code but the app still frozen. Any idea?
Thanks
when i try close connection with JDBC driver freeze app. Can i force async close?.
I tried this code but the app still frozen. Any idea?
B4X:
Dim Mh2 as jsql
Mh2.Initialize2("com.mysql.jdbc.Driver","jdbc:mysql://"& IniServer&":"& IniPort &"/"& IniDB & "?zeroDateTimeBehavior=convertToNull", ""& IniUser &"", ""& IniPassword &"")
ActBarText.Text=Trans.GetText("110")& IniDB.ToUpperCase & ")"
If Mh2.IsInitialized Then
Wait For(CloseCon) Complete (Result As Int)
End If
Sub CloseCon () As ResumableSub
Mh2.Close ' this point frozen
Return True
End Sub
Thanks