Hi guys,
I'm Alex from Italy.
I'm a Delphi, C++ and Java coder and two months ago I discovered this wonderful community. I am fascinated by the enormous potential of the B4X environment and I thank Erel for what he has done and what he does.
I've no a jRDC server (for now), so I tryed this nice library.
I've a connection problem with SD_SQL.
If I compile in debug mode all runs OK.
If I compile in release mode I receve connection error:
Not connected: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721. Unable to complete network request to host "192.168.0.99".
Where am I doing wrong?
B4X:
'In Main module:
'FirebirdSQL Connector/J Driver
#AdditionalJar: Jaybird_2_2_12.aar
'In B4XMainPage:
Private Sub B4XPage_Created (Root1 As B4XView)
Dim FBSQL As SD_SQL
Dim FBUsername As String = <my username>
Dim FBPassword As String = <my password>
Dim FBDriver As String = "org.firebirdsql.jdbc.FBDriver"
Dim FBPath As String = "jdbc:firebirdsql:192.168.0.99/3050:C:\winwork\Cerbero\DB\CER00014.GDB"
Try
Main.FBSQL.Initialize(Me,"FBSQL", FBDriver, FBPath, FBUsername, FBPassword)
Catch
MsgboxAsync("LastException: "&LastException, "")
End Try
End Sub
Sub FBSQL_Ready (Success As Boolean)
If Success Then
Log("OK")
Else
Log("...KO")
End If
End Sub