Refer to previous thread:
If the code exit from "Return", does the code after "End Try" execute ? In the above example, sql.Close.
How to handle unclosed query, resultset & trsancsaction when database connection is broken?
Hi guys, In a non UI database, I have a codes like these Sub Process_Globals Private pool As ConnectionPool Private Tm As Timer End Sub Sub AppStart (Args() As String) pool.Initialize(....) Tm.Initialize("TM",3000) Tm.Enabled = True Try...
www.b4x.com
B4X:Dim sql As SQL = pool.GetConnection Try 'work with sql If some_condition = True Then Return End If Catch 'handle failure End Try sql.Close
If the code exit from "Return", does the code after "End Try" execute ? In the above example, sql.Close.