I've got a http download which doesn't respect the "wait for". Am I missing something?
in my main I've the following
In the Starter:
The log is
"
in MAIN - before callsub
in MAIN - after callsub
succes download
"
in my main I've the following
B4X:
Log("in MAIN - before callsub")
CallSub(Starter,"GetNewRoute")
Log("in MAIN - after callsub")
In the Starter:
B4X:
Sub GetNewRoute
Dim j As HttpJob
Dim requestSoapXML As String
Dim sChar As String
sChar = "&"
requestSoapXML = "http://192.168.100.124/status/com.wso/GetRoute13/JSON?iPDA="&"1203"&sChar&"sWachtwoord="&"QWIvL05VUTVHTEorNmIxektaWWNGS"&sChar&"sExtra="&""
j.Initialize("",Me)
j.Download(requestSoapXML)
wait for (j) jobdone(j As HttpJob)
If j.Success Then
Log ("succes download")
j.Release
Else
Log ("failed download")
j.Release
End If
End Sub
The log is
"
in MAIN - before callsub
in MAIN - after callsub
succes download
"