Hi there
I have a routine which is sending batches of HTTP requests. I send a pre determined number of them and loop whilst waiting for the results with a DoEvents in there to stop UI issues. I am finding that the JobDone event is not being fired when I call the routine sending the request. I have written a brief psudo code of what I am doing. Can anyone advise how I get the JobDone to fire? I am guessing the loop is never queuing the JobDone but I do not know..
Thanks for the help,
Derek.
I have also used CallSubDelayed
I have a routine which is sending batches of HTTP requests. I send a pre determined number of them and loop whilst waiting for the results with a DoEvents in there to stop UI issues. I am finding that the JobDone event is not being fired when I call the routine sending the request. I have written a brief psudo code of what I am doing. Can anyone advise how I get the JobDone to fire? I am guessing the loop is never queuing the JobDone but I do not know..
Thanks for the help,
Derek.
B4X:
Do While ItemsLeft <> 0
DoEvents
Select Records from table
Loop through them
Update record set flag to 'being requested'
CallSub2(SendHTTPRequest, "SendHTTP")
ItemsLeft = Count how many left to send
Next
I have also used CallSubDelayed