I am creating an iOS app with B4i v6.80 and HttpJob v2.70 and HttpUtils2Service v2.70. Both HttpJob and HttpUtils2Service are being used as Code Modules.
I am trying to use the code below, as taken from the example:
If I comment out this line: "Wait For (j) JobDone(j As HttpJob)" the app does not crash and the POST is received by my web server. With the line not commented out the app crashes every time the code is called.
Attached is the error log showing the error. Am I doing something wrong?
I am trying to use the code below, as taken from the example:
B4X:
Dim j As HttpJob
j.Initialize("", Me)
j.PostString(Main.ServerURL,PostString)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
End If
j.Release
If I comment out this line: "Wait For (j) JobDone(j As HttpJob)" the app does not crash and the POST is received by my web server. With the line not commented out the app crashes every time the code is called.
Attached is the error log showing the error. Am I doing something wrong?